forked from qt-creator/qt-creator
Use Qt 5's QStringList::join(QChar)
Less typing and less cycles than join(QString) where appropriate Change-Id: I6ebc0e17e4d7fd9845864dd95b7de4ba4dad6906 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -241,7 +241,7 @@ QVariantMap AddKeysOperation::addKeys(const QVariantMap &map, const KeyValuePair
|
||||
// insert
|
||||
Q_ASSERT(stack.count() == p.key.count());
|
||||
if (stack.last().contains(p.key.last())) {
|
||||
std::cerr << "DEBUG: Adding key " << qPrintable(p.key.join(QLatin1String("/"))) << " which already exists." << std::endl;
|
||||
std::cerr << "DEBUG: Adding key " << qPrintable(p.key.join(QLatin1Char('/'))) << " which already exists." << std::endl;
|
||||
return QVariantMap();
|
||||
}
|
||||
stack.last().insert(p.key.last(), p.value);
|
||||
|
||||
Reference in New Issue
Block a user