From 7c4e2b6c60eb311ab5ce2bf1cc05fd10caf06350 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Tue, 20 Nov 2012 07:18:01 +0200 Subject: Id: Add QByteArray constructor Distinguish from const char * one. QString ctor is yet to be removed Change-Id: I2da231036c6417353b0566d39666d918ad141c6d Reviewed-by: hjk --- src/plugins/cvs/cvscontrol.cpp | 2 +- src/plugins/cvs/cvsplugin.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/cvs') diff --git a/src/plugins/cvs/cvscontrol.cpp b/src/plugins/cvs/cvscontrol.cpp index 0604ecd0ee..5feb30ab52 100644 --- a/src/plugins/cvs/cvscontrol.cpp +++ b/src/plugins/cvs/cvscontrol.cpp @@ -50,7 +50,7 @@ QString CvsControl::displayName() const Core::Id CvsControl::id() const { - return VcsBase::Constants::VCS_ID_CVS; + return Core::Id(VcsBase::Constants::VCS_ID_CVS); } bool CvsControl::isConfigured() const diff --git a/src/plugins/cvs/cvsplugin.cpp b/src/plugins/cvs/cvsplugin.cpp index 059f51e3a6..1185aa2ce0 100644 --- a/src/plugins/cvs/cvsplugin.cpp +++ b/src/plugins/cvs/cvsplugin.cpp @@ -1269,7 +1269,7 @@ IEditor *CvsPlugin::showOutputInEditor(const QString& title, const QString &outp { const VcsBaseEditorParameters *params = findType(editorType); QTC_ASSERT(params, return 0); - const Id id = params->id; + const Id id = Core::Id(QByteArray(params->id)); if (Cvs::Constants::debug) qDebug() << "CVSPlugin::showOutputInEditor" << title << id.name() << "source=" << source << "Size= " << output.size() << " Type=" << editorType << debugCodec(codec); -- cgit v1.2.1