summaryrefslogtreecommitdiff
path: root/zen/recycler.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:29:28 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:29:28 +0200
commit75c07011b7c4d06acd7b45dabdcd60ab9d80f385 (patch)
tree8853c3978dd152ef377e652239448b1352320206 /zen/recycler.cpp
parent5.22 (diff)
downloadFreeFileSync-75c07011b7c4d06acd7b45dabdcd60ab9d80f385.tar.gz
FreeFileSync-75c07011b7c4d06acd7b45dabdcd60ab9d80f385.tar.bz2
FreeFileSync-75c07011b7c4d06acd7b45dabdcd60ab9d80f385.zip
5.23
Diffstat (limited to 'zen/recycler.cpp')
-rw-r--r--zen/recycler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/zen/recycler.cpp b/zen/recycler.cpp
index 20e1a4af..a1353f0b 100644
--- a/zen/recycler.cpp
+++ b/zen/recycler.cpp
@@ -95,7 +95,7 @@ void zen::recycleOrDelete(const std::vector<Zstring>& filenames, CallbackRecycli
replaceCpy(_("Cannot load file %x."), L"%x", fmtFileName(getDllName())));
std::vector<const wchar_t*> cNames;
- for (auto it = filenames.begin(); it != filenames.end(); ++it) //caution to not create temporary strings here!!
+ for (auto it = filenames.begin(); it != filenames.end(); ++it) //CAUTION: to not create temporary strings here!!
cNames.push_back(it->c_str());
CallbackData cbd(callback);
@@ -114,9 +114,9 @@ void zen::recycleOrDelete(const std::vector<Zstring>& filenames, CallbackRecycli
else //regular recycle bin usage: available since XP
{
Zstring filenamesDoubleNull;
- for (auto it = filenames.begin(); it != filenames.end(); ++it)
+ for (const Zstring& filename : filenames)
{
- filenamesDoubleNull += *it;
+ filenamesDoubleNull += filename;
filenamesDoubleNull += L'\0';
}
bgstack15