summaryrefslogtreecommitdiff
path: root/plugins/Db_autobackups/src/backup.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2016-02-10 12:50:28 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2016-02-10 12:50:28 +0000
commit623758c88423ace8db961722e83077f30ca23109 (patch)
tree4657559326bd2417db5a86985a5b0692ec8a64f3 /plugins/Db_autobackups/src/backup.cpp
parent7fc50cfdc3e7a646e88df8883e205bd78b607e1a (diff)
fix attempt 2
git-svn-id: http://svn.miranda-ng.org/main/trunk@16263 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db_autobackups/src/backup.cpp')
-rw-r--r--plugins/Db_autobackups/src/backup.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Db_autobackups/src/backup.cpp b/plugins/Db_autobackups/src/backup.cpp
index 2967b72aa2..7d715ec7d6 100644
--- a/plugins/Db_autobackups/src/backup.cpp
+++ b/plugins/Db_autobackups/src/backup.cpp
@@ -92,8 +92,8 @@ bool MakeZip_Dir(LPCSTR szDir, LPCTSTR szDest, LPCSTR /* szDbName */, HWND progr
const auto& file = it->path();
if (!fs::is_directory(file) && !strstr(file.file_string().c_str(), _T2A(szDest)))
{
- std::string filepath = file.file_string();
- std::string rpath = filepath.substr(filepath.find(szDir) + mir_strlen(szDir) + 1);
+ const std::string &filepath = file.file_string();
+ const std::string rpath = filepath.substr(filepath.find(szDir) + mir_strlen(szDir) + 1);
HANDLE hSrc;