summaryrefslogtreecommitdiff
path: root/src/dir.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-07-29 20:56:12 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2019-07-29 20:56:12 +0100
commit530f5452d2b28617286802908671d38b44f6f9e6 (patch)
tree57aa25b94d3f10035fa486b7c2ac4738037b8415 /src/dir.h
parentSupport working tree based on a commit, tag or branch (diff)
downloadnetfs-gitfs-530f5452d2b28617286802908671d38b44f6f9e6.tar.bz2
netfs-gitfs-530f5452d2b28617286802908671d38b44f6f9e6.tar.xz
netfs-gitfs-530f5452d2b28617286802908671d38b44f6f9e6.zip
Fix constness of repo pointers
Diffstat (limited to 'src/dir.h')
-rw-r--r--src/dir.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dir.h b/src/dir.h
index 7174976..365adcc 100644
--- a/src/dir.h
+++ b/src/dir.h
@@ -9,7 +9,7 @@ namespace GitFS {
class Repo;
class Directory : public DirectoryV2 {
public:
- Directory(const Repo * r, const std::string &);
+ Directory(Repo * const r, const std::string &);
void close(const ::Ice::Current& current) override;
NameList readdir(const ::Ice::Current& current) override;
@@ -17,7 +17,7 @@ namespace GitFS {
private:
Git::TreePtr getSubtree() const;
- const Repo * repo;
+ Repo * const repo;
const std::string path;
mutable Git::TreePtr subTreeCache;