diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2011-12-22 14:44:14 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2011-12-22 14:47:29 +0100 |
commit | 2892f13b8c5ed3417872d4160686cc6e589c070c (patch) | |
tree | 2c6ede3aeb58dea58260188b4b6597778a81bb66 /src/plugins/coreplugin/id.cpp | |
parent | 0d72da2fd4eb4492fc259eccd4888ca66f1b66f5 (diff) | |
download | qt-creator-2892f13b8c5ed3417872d4160686cc6e589c070c.tar.gz |
CorePlugin: Compile with QT_NO_CAST_FROM_ASCII.
- Wrap literals in QLatin1String()/QLatin1Char().
- Extract some string constants avoiding repeated
QString construction.
- Fix repeated invocation of Container.end() in loops.
Change-Id: If737735507aaf82e53063adda53f54c46418f42f
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
Diffstat (limited to 'src/plugins/coreplugin/id.cpp')
-rw-r--r-- | src/plugins/coreplugin/id.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/coreplugin/id.cpp b/src/plugins/coreplugin/id.cpp index 88ba0095ff..9859276f28 100644 --- a/src/plugins/coreplugin/id.cpp +++ b/src/plugins/coreplugin/id.cpp @@ -87,7 +87,7 @@ QString Id::toString() const Context::Context(const char *id, int offset) { - d.append(Id(QString(id) + QString::number(offset)).uniqueIdentifier()); + d.append(Id(QLatin1String(id) + QString::number(offset)).uniqueIdentifier()); } void Context::add(const char *id) |