summaryrefslogtreecommitdiff
path: root/src/plugins/analyzerbase
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2012-11-20 07:18:01 +0200
committerOrgad Shaneh <orgads@gmail.com>2012-11-20 08:57:35 +0100
commit7c4e2b6c60eb311ab5ce2bf1cc05fd10caf06350 (patch)
tree50ebe5aa9ff3552ef07c73986945c889fef3e452 /src/plugins/analyzerbase
parentf31da9ac552bdad551babfebfeadd7d99250ac9d (diff)
downloadqt-creator-7c4e2b6c60eb311ab5ce2bf1cc05fd10caf06350.tar.gz
Id: Add QByteArray constructor
Distinguish from const char * one. QString ctor is yet to be removed Change-Id: I2da231036c6417353b0566d39666d918ad141c6d Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/plugins/analyzerbase')
-rw-r--r--src/plugins/analyzerbase/ianalyzertool.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/analyzerbase/ianalyzertool.cpp b/src/plugins/analyzerbase/ianalyzertool.cpp
index 8ce961c691..2f98593339 100644
--- a/src/plugins/analyzerbase/ianalyzertool.cpp
+++ b/src/plugins/analyzerbase/ianalyzertool.cpp
@@ -42,8 +42,8 @@ IAnalyzerTool::IAnalyzerTool(QObject *parent)
Id IAnalyzerTool::defaultMenuGroup(StartMode mode)
{
if (mode == StartRemote)
- return Constants::G_ANALYZER_REMOTE_TOOLS;
- return Constants::G_ANALYZER_TOOLS;
+ return Id(Constants::G_ANALYZER_REMOTE_TOOLS);
+ return Id(Constants::G_ANALYZER_TOOLS);
}
Id IAnalyzerTool::defaultActionId(const IAnalyzerTool *tool, StartMode mode)
@@ -51,11 +51,11 @@ Id IAnalyzerTool::defaultActionId(const IAnalyzerTool *tool, StartMode mode)
Id id = tool->id();
switch (mode) {
case StartLocal:
- return Id(QByteArray("Analyzer." + id.name() + ".Local").data());
+ return Id(QByteArray("Analyzer." + id.name() + ".Local"));
case StartRemote:
- return Id(QByteArray("Analyzer." + id.name() + ".Remote").data());
+ return Id(QByteArray("Analyzer." + id.name() + ".Remote"));
case StartQml:
- return Id(QByteArray("Analyzer." + id.name() + ".Qml").data());
+ return Id(QByteArray("Analyzer." + id.name() + ".Qml"));
}
return Id();
}