Commit e465295f authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

VCS: Pass string by reference on annotate



Change-Id: I20ce1187871a0cc82fbdaf02a555a9e12cbf185a
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 3dc4e182
...@@ -129,7 +129,7 @@ void BazaarClient::commit(const QString &repositoryRoot, const QStringList &file ...@@ -129,7 +129,7 @@ void BazaarClient::commit(const QString &repositoryRoot, const QStringList &file
} }
void BazaarClient::annotate(const QString &workingDir, const QString &file, void BazaarClient::annotate(const QString &workingDir, const QString &file,
const QString revision, int lineNumber, const QString &revision, int lineNumber,
const QStringList &extraOptions) const QStringList &extraOptions)
{ {
VcsBaseClient::annotate(workingDir, file, revision, lineNumber, VcsBaseClient::annotate(workingDir, file, revision, lineNumber,
......
...@@ -55,7 +55,7 @@ public: ...@@ -55,7 +55,7 @@ public:
void commit(const QString &repositoryRoot, const QStringList &files, void commit(const QString &repositoryRoot, const QStringList &files,
const QString &commitMessageFile, const QStringList &extraOptions = QStringList()); const QString &commitMessageFile, const QStringList &extraOptions = QStringList());
void annotate(const QString &workingDir, const QString &file, 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()); const QStringList &extraOptions = QStringList());
void view(const QString &source, const QString &id, void view(const QString &source, const QString &id,
const QStringList &extraOptions = QStringList()); const QStringList &extraOptions = QStringList());
......
...@@ -306,7 +306,7 @@ void MercurialClient::outgoing(const QString &repositoryRoot) ...@@ -306,7 +306,7 @@ void MercurialClient::outgoing(const QString &repositoryRoot)
} }
void MercurialClient::annotate(const QString &workingDir, const QString &file, void MercurialClient::annotate(const QString &workingDir, const QString &file,
const QString revision, int lineNumber, const QString &revision, int lineNumber,
const QStringList &extraOptions) const QStringList &extraOptions)
{ {
QStringList args(extraOptions); QStringList args(extraOptions);
......
...@@ -66,7 +66,7 @@ public: ...@@ -66,7 +66,7 @@ public:
bool managesFile(const QString &workingDirectory, const QString &fileName) const; bool managesFile(const QString &workingDirectory, const QString &fileName) const;
void annotate(const QString &workingDir, const QString &file, 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()); const QStringList &extraOptions = QStringList());
void commit(const QString &repositoryRoot, const QStringList &files, void commit(const QString &repositoryRoot, const QStringList &files,
const QString &commitMessageFile, const QString &commitMessageFile,
......
...@@ -325,7 +325,7 @@ Utils::SynchronousProcessResponse VcsBaseClient::vcsSynchronousExec( ...@@ -325,7 +325,7 @@ Utils::SynchronousProcessResponse VcsBaseClient::vcsSynchronousExec(
} }
void VcsBaseClient::annotate(const QString &workingDir, const QString &file, void VcsBaseClient::annotate(const QString &workingDir, const QString &file,
const QString revision /* = QString() */, const QString &revision /* = QString() */,
int lineNumber /* = -1 */, int lineNumber /* = -1 */,
const QStringList &extraOptions) const QStringList &extraOptions)
{ {
......
...@@ -92,7 +92,7 @@ public: ...@@ -92,7 +92,7 @@ public:
const QString &dstLocation, const QString &dstLocation,
const QStringList &extraOptions = QStringList()); const QStringList &extraOptions = QStringList());
virtual void annotate(const QString &workingDir, const QString &file, 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()); const QStringList &extraOptions = QStringList());
virtual void diff(const QString &workingDir, const QStringList &files = QStringList(), virtual void diff(const QString &workingDir, const QStringList &files = QStringList(),
const QStringList &extraOptions = QStringList()); const QStringList &extraOptions = QStringList());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment