From 56f3395785e655f70e9241ef43b77c53777227a1 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Mon, 5 Oct 2015 16:59:08 +0200 Subject: [PATCH] Use a reference instead of a copy Signed-off-by: Sven Strickroth --- src/Git/GitPatch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Git/GitPatch.cpp b/src/Git/GitPatch.cpp index 6da7c57ce..817324043 100644 --- a/src/Git/GitPatch.cpp +++ b/src/Git/GitPatch.cpp @@ -255,7 +255,7 @@ bool GitPatch::PatchPath(const CString& path) int GitPatch::GetPatchResult(const CString& sPath, CString& sSavePath, CString& sRejectPath, CString &sBasePath) const { - for (const auto filePath : m_filePaths) + for (const auto& filePath : m_filePaths) { if (Strip(filePath.path).CompareNoCase(sPath) == 0) { -- 2.11.4.GIT