diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2017-12-08 07:42:32 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2017-12-08 07:42:32 +0300 |
commit | caff89011ee731657192dc076b6a1ea54fcee520 (patch) | |
tree | 2390a84cb56fbd7a472533efda7b24ea409f389e /plugins/New_GPG/src/init.cpp | |
parent | b3d3b95a16be5b1785681f0f6fdc3bcdb967a42e (diff) |
new_gpg: a bit of refactoring
- eliminated few confusing globals (including unnecessary mutex)
- implemeted proper way to avoid collisions in some places
Diffstat (limited to 'plugins/New_GPG/src/init.cpp')
-rwxr-xr-x | plugins/New_GPG/src/init.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/New_GPG/src/init.cpp b/plugins/New_GPG/src/init.cpp index fc83d06c14..1736462b5e 100755 --- a/plugins/New_GPG/src/init.cpp +++ b/plugins/New_GPG/src/init.cpp @@ -215,9 +215,9 @@ extern "C" int __declspec(dllexport) Unload(void) { if(!transfers.empty()) { - for(list<wstring>::iterator p = transfers.begin(); p != transfers.end(); p++) - if(!(*p).empty()) - boost::filesystem::remove((*p)); + for(auto p : transfers) + if(!p.empty()) + boost::filesystem::remove(p); } mir_free(globals.inopentag); mir_free(globals.inclosetag); |