From 623758c88423ace8db961722e83077f30ca23109 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Wed, 10 Feb 2016 12:50:28 +0000 Subject: fix attempt 2 git-svn-id: http://svn.miranda-ng.org/main/trunk@16263 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Db_autobackups/src/backup.cpp | 4 ++-- plugins/Db_autobackups/src/stdafx.h | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'plugins/Db_autobackups/src') 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; diff --git a/plugins/Db_autobackups/src/stdafx.h b/plugins/Db_autobackups/src/stdafx.h index f00a90cb64..77dd225a59 100644 --- a/plugins/Db_autobackups/src/stdafx.h +++ b/plugins/Db_autobackups/src/stdafx.h @@ -6,11 +6,13 @@ #include #include #include -#include #include + #if defined(_MSC_VER) && (_MSC_VER >= 1800) +# include namespace fs = std::tr2::sys; #else +# include namespace fs = std::experimental::filesystem; #endif -- cgit v1.2.3