VCS: Pass const values by references

Change-Id: I9749c0c76b810f3d5fee1aa8c5750dac5930cd3c
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Orgad Shaneh
2014-05-05 17:12:10 +03:00
committed by Orgad Shaneh
parent b3ff928b0a
commit 642706dc44
5 changed files with 11 additions and 10 deletions

View File

@@ -141,7 +141,7 @@ public:
return fn;
}
void insert(const QStringList path, BranchNode *n)
void insert(const QStringList &path, BranchNode *n)
{
BranchNode *current = this;
for (int i = 0; i < path.count(); ++i) {

View File

@@ -1096,7 +1096,7 @@ VcsBase::VcsBaseEditorWidget *GitClient::findExistingVCSEditor(const char *regis
return rc;
}
DiffEditor::DiffEditorDocument *GitClient::createDiffEditor(const QString documentId,
DiffEditor::DiffEditorDocument *GitClient::createDiffEditor(const QString &documentId,
const QString &source,
const QString &title) const
{

View File

@@ -356,7 +356,7 @@ private:
const char *registerDynamicProperty,
const QString &dynamicPropertyValue,
VcsBase::VcsBaseEditorParameterWidget *configWidget) const;
DiffEditor::DiffEditorDocument *createDiffEditor(const QString documentId,
DiffEditor::DiffEditorDocument *createDiffEditor(const QString &documentId,
const QString &source,
const QString &title) const;

View File

@@ -1169,7 +1169,8 @@ PerforceResponse PerforcePlugin::runP4Cmd(const QString &workingDir,
return response;
}
Core::IEditor *PerforcePlugin::showOutputInEditor(const QString &title, const QString output,
Core::IEditor *PerforcePlugin::showOutputInEditor(const QString &title,
const QString &output,
int editorType,
const QString &source,
QTextCodec *codec)

View File

@@ -146,7 +146,7 @@ protected:
private:
typedef QHash<QString, bool> ManagedDirectoryCache;
Core::IEditor *showOutputInEditor(const QString& title, const QString output,
Core::IEditor *showOutputInEditor(const QString &title, const QString &output,
int editorType, const QString &source,
QTextCodec *codec = 0);