diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-07-29 20:56:12 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-07-29 20:56:12 +0100 |
commit | 530f5452d2b28617286802908671d38b44f6f9e6 (patch) | |
tree | 57aa25b94d3f10035fa486b7c2ac4738037b8415 /src/blob.h | |
parent | Support working tree based on a commit, tag or branch (diff) | |
download | netfs-gitfs-530f5452d2b28617286802908671d38b44f6f9e6.tar.bz2 netfs-gitfs-530f5452d2b28617286802908671d38b44f6f9e6.tar.xz netfs-gitfs-530f5452d2b28617286802908671d38b44f6f9e6.zip |
Fix constness of repo pointers
Diffstat (limited to 'src/blob.h')
-rw-r--r-- | src/blob.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -9,7 +9,7 @@ namespace GitFS { class Repo; class Blob : public File { public: - Blob(const Repo * r, const std::string &); + Blob(const Repo * const r, const std::string &); void close(const ::Ice::Current& current) override; Attr fgetattr(ReqEnv env, const ::Ice::Current& current) override; @@ -19,7 +19,7 @@ namespace GitFS { private: Git::BlobPtr getBlob() const; - const Repo * repo; + const Repo * const repo; Git::TreeEntryPtr entry; Git::BlobPtr blob; const decltype(git_blob_rawsize({})) blobSize; |