From a6ad773722a758df46813afd7af42625a0f3e276 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Thu, 7 Jan 2010 18:17:24 +0100 Subject: Make method naming more consistent. * Use id() for methods returning a string used to represent some type of object. * Use displayName() for strings that are meant to be user visible. * Quieten some warnings while touching the files anyway. * Move Factories to their products in the plugins where that was not done before. Reviewed-by: dt --- src/plugins/cpptools/cpptoolsplugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/cpptools/cpptoolsplugin.cpp') diff --git a/src/plugins/cpptools/cpptoolsplugin.cpp b/src/plugins/cpptools/cpptoolsplugin.cpp index 7b758237c0..d921aa4bd2 100644 --- a/src/plugins/cpptools/cpptoolsplugin.cpp +++ b/src/plugins/cpptools/cpptoolsplugin.cpp @@ -128,7 +128,7 @@ bool CppToolsPlugin::initialize(const QStringList &arguments, QString *error) mtools->addMenu(mcpptools); // Actions - m_context = core->uniqueIDManager()->uniqueIdentifier(CppEditor::Constants::C_CPPEDITOR); + m_context = core->uniqueIDManager()->uniqueIdentifier(CppEditor::Constants::CPPEDITOR_ID); QList context = QList() << m_context; QAction *switchAction = new QAction(tr("Switch Header/Source"), this); -- cgit v1.2.1