summaryrefslogtreecommitdiff
path: root/src/plugins/coreplugin/actionmanager/commandmappings.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2011-12-22 14:44:14 +0100
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2011-12-22 14:47:29 +0100
commit2892f13b8c5ed3417872d4160686cc6e589c070c (patch)
tree2c6ede3aeb58dea58260188b4b6597778a81bb66 /src/plugins/coreplugin/actionmanager/commandmappings.cpp
parent0d72da2fd4eb4492fc259eccd4888ca66f1b66f5 (diff)
downloadqt-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/actionmanager/commandmappings.cpp')
-rw-r--r--src/plugins/coreplugin/actionmanager/commandmappings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/coreplugin/actionmanager/commandmappings.cpp b/src/plugins/coreplugin/actionmanager/commandmappings.cpp
index 32f065c08f..fe6ead9c8c 100644
--- a/src/plugins/coreplugin/actionmanager/commandmappings.cpp
+++ b/src/plugins/coreplugin/actionmanager/commandmappings.cpp
@@ -151,7 +151,7 @@ void CommandMappings::finish()
void CommandMappings::commandChanged(QTreeWidgetItem *current)
{
if (!current || !current->data(0, Qt::UserRole).isValid()) {
- m_page->targetEdit->setText("");
+ m_page->targetEdit->setText(QString());
m_page->targetEditGroup->setEnabled(false);
return;
}