summaryrefslogtreecommitdiff
path: root/src/plugins/bazaar/bazaarclient.cpp
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2022-12-14 17:40:42 +0100
committerJarek Kobus <jaroslaw.kobus@qt.io>2022-12-14 16:57:14 +0000
commitce161d0b16f498636e3e3adf74c8bae603b4c76b (patch)
tree0f55217c5a3b45c40972bddeb8a40ea504430cdc /src/plugins/bazaar/bazaarclient.cpp
parent042087ab1deb46da3288df1aae3bbda03bd7e433 (diff)
downloadqt-creator-ce161d0b16f498636e3e3adf74c8bae603b4c76b.tar.gz
VcsBase & dependent: Fix const correctness
And some minor cleanups. Change-Id: Id0c2df6865ba84c054f0fb97c0ac42a76a128355 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/bazaar/bazaarclient.cpp')
-rw-r--r--src/plugins/bazaar/bazaarclient.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/plugins/bazaar/bazaarclient.cpp b/src/plugins/bazaar/bazaarclient.cpp
index d167b3b0c4..8eef2e9da9 100644
--- a/src/plugins/bazaar/bazaarclient.cpp
+++ b/src/plugins/bazaar/bazaarclient.cpp
@@ -164,10 +164,7 @@ FilePath BazaarClient::findTopLevelForFile(const FilePath &file) const
bool BazaarClient::managesFile(const FilePath &workingDirectory, const QString &fileName) const
{
- QStringList args(QLatin1String("status"));
- args << fileName;
-
- const CommandResult result = vcsSynchronousExec(workingDirectory, args);
+ const CommandResult result = vcsSynchronousExec(workingDirectory, {"status", fileName});
if (result.result() != ProcessResult::FinishedWithSuccess)
return false;
return result.rawStdOut().startsWith("unknown");
@@ -190,7 +187,7 @@ Utils::Id BazaarClient::vcsEditorKind(VcsCommandTag cmd) const
case LogCommand:
return Constants::FILELOG_ID;
default:
- return Utils::Id();
+ return {};
}
}