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;
|
return fn;
|
||||||
}
|
}
|
||||||
|
|
||||||
void insert(const QStringList path, BranchNode *n)
|
void insert(const QStringList &path, BranchNode *n)
|
||||||
{
|
{
|
||||||
BranchNode *current = this;
|
BranchNode *current = this;
|
||||||
for (int i = 0; i < path.count(); ++i) {
|
for (int i = 0; i < path.count(); ++i) {
|
||||||
|
|||||||
@@ -1096,7 +1096,7 @@ VcsBase::VcsBaseEditorWidget *GitClient::findExistingVCSEditor(const char *regis
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
DiffEditor::DiffEditorDocument *GitClient::createDiffEditor(const QString documentId,
|
DiffEditor::DiffEditorDocument *GitClient::createDiffEditor(const QString &documentId,
|
||||||
const QString &source,
|
const QString &source,
|
||||||
const QString &title) const
|
const QString &title) const
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -356,7 +356,7 @@ private:
|
|||||||
const char *registerDynamicProperty,
|
const char *registerDynamicProperty,
|
||||||
const QString &dynamicPropertyValue,
|
const QString &dynamicPropertyValue,
|
||||||
VcsBase::VcsBaseEditorParameterWidget *configWidget) const;
|
VcsBase::VcsBaseEditorParameterWidget *configWidget) const;
|
||||||
DiffEditor::DiffEditorDocument *createDiffEditor(const QString documentId,
|
DiffEditor::DiffEditorDocument *createDiffEditor(const QString &documentId,
|
||||||
const QString &source,
|
const QString &source,
|
||||||
const QString &title) const;
|
const QString &title) const;
|
||||||
|
|
||||||
|
|||||||
@@ -1169,7 +1169,8 @@ PerforceResponse PerforcePlugin::runP4Cmd(const QString &workingDir,
|
|||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
Core::IEditor *PerforcePlugin::showOutputInEditor(const QString &title, const QString output,
|
Core::IEditor *PerforcePlugin::showOutputInEditor(const QString &title,
|
||||||
|
const QString &output,
|
||||||
int editorType,
|
int editorType,
|
||||||
const QString &source,
|
const QString &source,
|
||||||
QTextCodec *codec)
|
QTextCodec *codec)
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ protected:
|
|||||||
private:
|
private:
|
||||||
typedef QHash<QString, bool> ManagedDirectoryCache;
|
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,
|
int editorType, const QString &source,
|
||||||
QTextCodec *codec = 0);
|
QTextCodec *codec = 0);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user