diff --git a/src/plugins/debugger/debuggerprofileinformation.cpp b/src/plugins/debugger/debuggerprofileinformation.cpp index 4e584ea56de..5cceb647457 100644 --- a/src/plugins/debugger/debuggerprofileinformation.cpp +++ b/src/plugins/debugger/debuggerprofileinformation.cpp @@ -205,7 +205,7 @@ Utils::FileName DebuggerProfileInformation::debuggerCommand(const ProjectExplore return Utils::FileName::fromString(p->value(Core::Id(DEBUGGER_INFORMATION)).toString()); } -void DebuggerProfileInformation::setDebuggerCommand(ProjectExplorer::Profile *p, Utils::FileName &command) +void DebuggerProfileInformation::setDebuggerCommand(ProjectExplorer::Profile *p, const Utils::FileName &command) { p->setValue(Core::Id(DEBUGGER_INFORMATION), command.toString()); } diff --git a/src/plugins/debugger/debuggerprofileinformation.h b/src/plugins/debugger/debuggerprofileinformation.h index aaf990e79b4..15f378aba5e 100644 --- a/src/plugins/debugger/debuggerprofileinformation.h +++ b/src/plugins/debugger/debuggerprofileinformation.h @@ -59,7 +59,7 @@ public: ItemList toUserOutput(ProjectExplorer::Profile *p) const; static Utils::FileName debuggerCommand(const ProjectExplorer::Profile *p); - static void setDebuggerCommand(ProjectExplorer::Profile *p, Utils::FileName &command); + static void setDebuggerCommand(ProjectExplorer::Profile *p, const Utils::FileName &command); }; } // namespace Debugger diff --git a/src/plugins/qtsupport/qtprofileinformation.cpp b/src/plugins/qtsupport/qtprofileinformation.cpp index 4a203047410..750c69234a3 100644 --- a/src/plugins/qtsupport/qtprofileinformation.cpp +++ b/src/plugins/qtsupport/qtprofileinformation.cpp @@ -135,7 +135,7 @@ BaseQtVersion *QtProfileInformation::qtVersion(const ProjectExplorer::Profile *p return QtVersionManager::instance()->version(qtVersionId(p)); } -void QtProfileInformation::setQtVersion(ProjectExplorer::Profile *p, BaseQtVersion *v) +void QtProfileInformation::setQtVersion(ProjectExplorer::Profile *p, const BaseQtVersion *v) { if (!v) setQtVersionId(p, -1); diff --git a/src/plugins/qtsupport/qtprofileinformation.h b/src/plugins/qtsupport/qtprofileinformation.h index 55be3bd0906..eaa291e77a1 100644 --- a/src/plugins/qtsupport/qtprofileinformation.h +++ b/src/plugins/qtsupport/qtprofileinformation.h @@ -65,7 +65,7 @@ public: static int qtVersionId(const ProjectExplorer::Profile *p); static void setQtVersionId(ProjectExplorer::Profile *p, const int id); static BaseQtVersion *qtVersion(const ProjectExplorer::Profile *p); - static void setQtVersion(ProjectExplorer::Profile *p, BaseQtVersion *v); + static void setQtVersion(ProjectExplorer::Profile *p, const BaseQtVersion *v); }; class QTSUPPORT_EXPORT QtTypeProfileMatcher : public ProjectExplorer::ProfileMatcher