summaryrefslogtreecommitdiff
path: root/src/plugins/vcsbase
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2014-05-05 16:59:56 +0300
committerOrgad Shaneh <orgads@gmail.com>2014-05-06 15:32:05 +0200
commite465295f75c7e00872bb0bb8f13f258b4cdc8c7d (patch)
tree4290a5a8188a7dc8a7769fd6ceb6ff64e5009bff /src/plugins/vcsbase
parent3dc4e182f46eb744ed8bc04c18cd525f633d7ce4 (diff)
downloadqt-creator-e465295f75c7e00872bb0bb8f13f258b4cdc8c7d.tar.gz
VCS: Pass string by reference on annotate
Change-Id: I20ce1187871a0cc82fbdaf02a555a9e12cbf185a Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/vcsbase')
-rw-r--r--src/plugins/vcsbase/vcsbaseclient.cpp2
-rw-r--r--src/plugins/vcsbase/vcsbaseclient.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/vcsbase/vcsbaseclient.cpp b/src/plugins/vcsbase/vcsbaseclient.cpp
index 25b311f397..59f61a68ff 100644
--- a/src/plugins/vcsbase/vcsbaseclient.cpp
+++ b/src/plugins/vcsbase/vcsbaseclient.cpp
@@ -325,7 +325,7 @@ Utils::SynchronousProcessResponse VcsBaseClient::vcsSynchronousExec(
}
void VcsBaseClient::annotate(const QString &workingDir, const QString &file,
- const QString revision /* = QString() */,
+ const QString &revision /* = QString() */,
int lineNumber /* = -1 */,
const QStringList &extraOptions)
{
diff --git a/src/plugins/vcsbase/vcsbaseclient.h b/src/plugins/vcsbase/vcsbaseclient.h
index cc7dc03ad6..d814c48d66 100644
--- a/src/plugins/vcsbase/vcsbaseclient.h
+++ b/src/plugins/vcsbase/vcsbaseclient.h
@@ -92,7 +92,7 @@ public:
const QString &dstLocation,
const QStringList &extraOptions = QStringList());
virtual void annotate(const QString &workingDir, const QString &file,
- const QString revision = QString(), int lineNumber = -1,
+ const QString &revision = QString(), int lineNumber = -1,
const QStringList &extraOptions = QStringList());
virtual void diff(const QString &workingDir, const QStringList &files = QStringList(),
const QStringList &extraOptions = QStringList());