aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/git/branchmodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/git/branchmodel.cpp')
-rw-r--r--src/plugins/git/branchmodel.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/git/branchmodel.cpp b/src/plugins/git/branchmodel.cpp
index 146c051ea2e..0256c30a415 100644
--- a/src/plugins/git/branchmodel.cpp
+++ b/src/plugins/git/branchmodel.cpp
@@ -39,6 +39,7 @@
#include <set>
+using namespace Utils;
using namespace VcsBase;
namespace Git {
@@ -240,7 +241,7 @@ public:
BranchModel *q;
GitClient *client;
- QString workingDirectory;
+ FilePath workingDirectory;
BranchNode *rootNode;
BranchNode *currentBranch = nullptr;
BranchNode *headNode = nullptr;
@@ -422,7 +423,7 @@ void BranchModel::clear()
d->obsoleteLocalBranches.clear();
}
-bool BranchModel::refresh(const QString &workingDirectory, QString *errorMessage)
+bool BranchModel::refresh(const FilePath &workingDirectory, QString *errorMessage)
{
beginResetModel();
clear();
@@ -510,7 +511,7 @@ void BranchModel::renameTag(const QString &oldName, const QString &newName)
}
}
-QString BranchModel::workingDirectory() const
+FilePath BranchModel::workingDirectory() const
{
return d->workingDirectory;
}