forked from qt-creator/qt-creator
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 <hjk@theqtcompany.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user