forked from qt-creator/qt-creator
VCS: Pass const values by references
Change-Id: I9749c0c76b810f3d5fee1aa8c5750dac5930cd3c Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
b3ff928b0a
commit
642706dc44
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user