forked from qt-creator/qt-creator
Replace QLatin1String("x") with QLatin1Char('x') where possible
Change-Id: I2f90c8ae7b5e968b9de882833f8661ab540a9232 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -379,7 +379,7 @@ int QmlJSIndenter::indentForContinuationLine()
|
||||
*/
|
||||
if (!isContinuationLine())
|
||||
return indentOfLine(*yyLine);
|
||||
} else if (isContinuationLine() || yyLine->endsWith(QLatin1String(","))) {
|
||||
} else if (isContinuationLine() || yyLine->endsWith(QLatin1Char(','))) {
|
||||
/*
|
||||
We have
|
||||
|
||||
|
||||
@@ -200,25 +200,25 @@ QString PropertyInfo::toString() const
|
||||
}
|
||||
if (isWriteable()) {
|
||||
if (join)
|
||||
res += QLatin1String("|");
|
||||
res += QLatin1Char('|');
|
||||
res += QLatin1String("Writeable");
|
||||
join = true;
|
||||
}
|
||||
if (isList()) {
|
||||
if (join)
|
||||
res += QLatin1String("|");
|
||||
res += QLatin1Char('|');
|
||||
res += QLatin1String("ListType");
|
||||
join = true;
|
||||
}
|
||||
if (canBePointer()) {
|
||||
if (join)
|
||||
res += QLatin1String("|");
|
||||
res += QLatin1Char('|');
|
||||
res += QLatin1String("Pointer");
|
||||
join = true;
|
||||
}
|
||||
if (canBeValue()) {
|
||||
if (join)
|
||||
res += QLatin1String("|");
|
||||
res += QLatin1Char('|');
|
||||
res += QLatin1String("Value");
|
||||
join = true;
|
||||
}
|
||||
|
||||
@@ -563,7 +563,7 @@ bool LineInfo::isUnfinishedLine()
|
||||
unf = true;
|
||||
|
||||
// ### This only checks one line back.
|
||||
} else if (readLine() && yyLine->endsWith(QLatin1String(";")) && hasUnclosedParenOrBracket()) {
|
||||
} else if (readLine() && yyLine->endsWith(QLatin1Char(';')) && hasUnclosedParenOrBracket()) {
|
||||
/*
|
||||
Exception:
|
||||
|
||||
|
||||
@@ -324,7 +324,7 @@ void PluginDumper::qmlPluginTypeDumpDone(int exitCode)
|
||||
CppQmlTypesLoader::BuiltinObjects objectsList;
|
||||
QList<ModuleApiInfo> moduleApis;
|
||||
CppQmlTypesLoader::parseQmlTypeDescriptions(output, &objectsList, &moduleApis, &error, &warning,
|
||||
QLatin1String("<dump of ") + libraryPath + QLatin1String(">"));
|
||||
QLatin1String("<dump of ") + libraryPath + QLatin1Char('>'));
|
||||
if (exitCode == 0) {
|
||||
if (!error.isEmpty()) {
|
||||
libraryInfo.setPluginTypeInfoStatus(LibraryInfo::DumpError,
|
||||
|
||||
@@ -119,7 +119,7 @@ QString QrcParser::normalizedQrcFilePath(const QString &path) {
|
||||
while (endPrefix + 1 < path.size() && path.at(endPrefix+1) == QLatin1Char('/'))
|
||||
++endPrefix;
|
||||
normPath = path.right(path.size()-endPrefix);
|
||||
if (!normPath.startsWith(QLatin1String("/")))
|
||||
if (!normPath.startsWith(QLatin1Char('/')))
|
||||
normPath.insert(0, QLatin1Char('/'));
|
||||
return normPath;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user