diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2012-11-20 07:18:01 +0200 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2012-11-20 08:57:35 +0100 |
commit | 7c4e2b6c60eb311ab5ce2bf1cc05fd10caf06350 (patch) | |
tree | 50ebe5aa9ff3552ef07c73986945c889fef3e452 /src/plugins/analyzerbase | |
parent | f31da9ac552bdad551babfebfeadd7d99250ac9d (diff) | |
download | qt-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.cpp | 10 |
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(); } |