From c907ff8b52ba7b286de0797589da0db451269bc2 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Sun, 11 Jun 2017 20:57:51 +0200 Subject: [PATCH] Pass const reference to path Signed-off-by: Sven Strickroth --- src/Git/GitIndex.cpp | 2 +- src/Git/gitindex.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Git/GitIndex.cpp b/src/Git/GitIndex.cpp index 10c0e2d5d..2d2da4dfa 100644 --- a/src/Git/GitIndex.cpp +++ b/src/Git/GitIndex.cpp @@ -229,7 +229,7 @@ int CGitIndexList::GetFileStatus(CAutoRepository& repository, const CString& git return 0; } -int CGitIndexList::GetFileStatus(const CString& gitdir, CString path, git_wc_status2_t& status, CGitHash* pHash) +int CGitIndexList::GetFileStatus(const CString& gitdir, const CString& path, git_wc_status2_t& status, CGitHash* pHash) { ATLASSERT(!status.assumeValid && !status.skipWorktree); diff --git a/src/Git/gitindex.h b/src/Git/gitindex.h index 5322c242e..bbd71ce0e 100644 --- a/src/Git/gitindex.h +++ b/src/Git/gitindex.h @@ -49,7 +49,7 @@ public: ~CGitIndexList(); int ReadIndex(CString dotgitdir); - int GetFileStatus(const CString& gitdir, CString path, git_wc_status2_t& status, CGitHash* pHash = nullptr); + int GetFileStatus(const CString& gitdir, const CString& path, git_wc_status2_t& status, CGitHash* pHash = nullptr); int GetFileStatus(CAutoRepository& repository, const CString& gitdir, CGitIndex& entry, git_wc_status2_t& status, __int64 time, __int64 filesize); #ifdef GTEST_INCLUDE_GTEST_GTEST_H_ FRIEND_TEST(GitIndexCBasicGitWithTestRepoFixture, GetFileStatus); -- 2.11.4.GIT