Make const the functions parameters

Change-Id: Ie02e3bc3cb09734164f573a0af53e4e1a5e99402
Reviewed-by: Laszlo Papp <lpapp@kde.org>
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
BogDan Vatra
2012-07-15 14:16:43 +03:00
committed by Daniel Teske
parent 29a65750f6
commit 1a5edbaff9
4 changed files with 4 additions and 4 deletions

View File

@@ -205,7 +205,7 @@ Utils::FileName DebuggerProfileInformation::debuggerCommand(const ProjectExplore
return Utils::FileName::fromString(p->value(Core::Id(DEBUGGER_INFORMATION)).toString()); 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()); p->setValue(Core::Id(DEBUGGER_INFORMATION), command.toString());
} }

View File

@@ -59,7 +59,7 @@ public:
ItemList toUserOutput(ProjectExplorer::Profile *p) const; ItemList toUserOutput(ProjectExplorer::Profile *p) const;
static Utils::FileName debuggerCommand(const ProjectExplorer::Profile *p); 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 } // namespace Debugger

View File

@@ -135,7 +135,7 @@ BaseQtVersion *QtProfileInformation::qtVersion(const ProjectExplorer::Profile *p
return QtVersionManager::instance()->version(qtVersionId(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) if (!v)
setQtVersionId(p, -1); setQtVersionId(p, -1);

View File

@@ -65,7 +65,7 @@ public:
static int qtVersionId(const ProjectExplorer::Profile *p); static int qtVersionId(const ProjectExplorer::Profile *p);
static void setQtVersionId(ProjectExplorer::Profile *p, const int id); static void setQtVersionId(ProjectExplorer::Profile *p, const int id);
static BaseQtVersion *qtVersion(const ProjectExplorer::Profile *p); 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 class QTSUPPORT_EXPORT QtTypeProfileMatcher : public ProjectExplorer::ProfileMatcher