summaryrefslogtreecommitdiff
path: root/RealtimeSync/tray_menu.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:12:46 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:12:46 +0200
commitb338e29fd3eaf700f8c8360aa0310048ba941d54 (patch)
tree122f8ef3790d12cd10275ef7453a9e8053322d78 /RealtimeSync/tray_menu.cpp
parent3.18 (diff)
downloadFreeFileSync-b338e29fd3eaf700f8c8360aa0310048ba941d54.tar.gz
FreeFileSync-b338e29fd3eaf700f8c8360aa0310048ba941d54.tar.bz2
FreeFileSync-b338e29fd3eaf700f8c8360aa0310048ba941d54.zip
3.19
Diffstat (limited to 'RealtimeSync/tray_menu.cpp')
-rw-r--r--RealtimeSync/tray_menu.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/RealtimeSync/tray_menu.cpp b/RealtimeSync/tray_menu.cpp
index d42aea0a..e6d5f0d4 100644
--- a/RealtimeSync/tray_menu.cpp
+++ b/RealtimeSync/tray_menu.cpp
@@ -27,7 +27,7 @@
#include "../shared/shell_execute.h"
using namespace rts;
-
+using namespace zen;
class TrayIconHolder : private wxEvtHandler
{
@@ -227,7 +227,7 @@ std::vector<Zstring> convert(const std::vector<wxString>& dirList)
{
std::set<Zstring, LessFilename> output;
std::transform(dirList.begin(), dirList.end(),
- std::inserter(output, output.end()), static_cast<Zstring (*)(const wxString&)>(zen::wxToZ));
+ std::inserter(output, output.end()), [](const wxString& str) { return zen::toZ(str); });
return std::vector<Zstring>(output.begin(), output.end());
}
}
@@ -299,9 +299,9 @@ rts::MonitorResponse rts::startDirectoryMonitor(const xmlAccess::XmlRealConfig&
if (config.commandline.empty())
{
- wxString errorMsg = _("Invalid commandline: \"%x\"");
- errorMsg.Replace(L"%x", config.commandline);
- throw zen::FileError(errorMsg);
+ std::wstring errorMsg = _("Invalid commandline: \"%x\"");
+ replace(errorMsg, L"%x", config.commandline);
+ throw FileError(errorMsg);
}
callback.notifyDirectoryMissing();
@@ -337,7 +337,7 @@ rts::MonitorResponse rts::startDirectoryMonitor(const xmlAccess::XmlRealConfig&
callback.scheduleNextSync(wxGetLocalTime() + static_cast<long>(config.delay));
}
}
- catch (StartSyncNowException) {}
+ catch (StartSyncNowException&) {}
}
}
catch (const ::AbortThisProcess& ab)
bgstack15