diff options
author | Orgad Shaneh <[email protected]> | 2015-02-03 23:58:49 +0200 |
---|---|---|
committer | hjk <[email protected]> | 2015-02-04 08:52:39 +0000 |
commit | 4e8e75d88e0b72ffbc25e9b019a2d1ef4ab3ac0b (patch) | |
tree | f28e0c70919ac341ca6ae981ce4d86a94a700f50 /src/plugins/debugger/breakhandler.cpp | |
parent | 3a9b34f232ac916ac1b8322480e916cd096f569e (diff) |
Debugger: Remove unneeded qualifications
Mostly done using the following ruby script:
Dir.glob('**/*.cpp').each { |file|
next if file =~ %r{src/shared/qbs|/qmljs/}
s = File.read(file)
s.scan(/^using namespace (.*);$/) {
ns = $1
t = s.gsub(/^(.*)\b#{ns}::((?!Const)[A-Z])/) { |m|
before = $1
char = $2
if before =~ /"|\/\/|\\|using|SIGNAL|SLOT|Q_/
m
else
before + char
end
}
if t != s
puts file
File.open(file, 'w').write(t)
end
}
}
Change-Id: I1aa1a2b6ccbafeb1a8f3053fffa39b3f96992591
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/debugger/breakhandler.cpp')
-rw-r--r-- | src/plugins/debugger/breakhandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/debugger/breakhandler.cpp b/src/plugins/debugger/breakhandler.cpp index 15825918dfe..f4936e5c944 100644 --- a/src/plugins/debugger/breakhandler.cpp +++ b/src/plugins/debugger/breakhandler.cpp @@ -293,7 +293,7 @@ QIcon BreakHandler::emptyIcon() static inline bool fileNameMatch(const QString &f1, const QString &f2) { - if (Utils::HostOsInfo::fileNameCaseSensitivity() == Qt::CaseInsensitive) + if (HostOsInfo::fileNameCaseSensitivity() == Qt::CaseInsensitive) return f1.compare(f2, Qt::CaseInsensitive) == 0; return f1 == f2; } @@ -637,7 +637,7 @@ QVariant BreakpointItem::data(int column, int role) const if (str.isEmpty() && !m_params.fileName.isEmpty()) str = m_params.fileName; if (str.isEmpty()) { - QString s = Utils::FileName::fromString(str).fileName(); + QString s = FileName::fromString(str).fileName(); if (!s.isEmpty()) str = s; } |