summaryrefslogtreecommitdiff
path: root/RealtimeSync/xml_ffs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'RealtimeSync/xml_ffs.cpp')
-rw-r--r--RealtimeSync/xml_ffs.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/RealtimeSync/xml_ffs.cpp b/RealtimeSync/xml_ffs.cpp
index 1f3fb1b1..149b0bbe 100644
--- a/RealtimeSync/xml_ffs.cpp
+++ b/RealtimeSync/xml_ffs.cpp
@@ -7,7 +7,7 @@
#include "xml_ffs.h"
#include "../lib/ffs_paths.h"
#include <zen/zstring.h>
-#include <wx+/string_conv.h>
+//#include <wx+/string_conv.h>
//include FreeFileSync xml headers
#include "../lib/process_xml.h"
@@ -17,8 +17,6 @@ using namespace zen;
xmlAccess::XmlRealConfig convertBatchToReal(const xmlAccess::XmlBatchConfig& batchCfg, const Zstring& filename)
{
- xmlAccess::XmlRealConfig output;
-
std::set<Zstring, LessFilename> uniqueFolders;
//add main folders
@@ -35,13 +33,9 @@ xmlAccess::XmlRealConfig convertBatchToReal(const xmlAccess::XmlBatchConfig& bat
uniqueFolders.erase(Zstring());
- output.directories.clear();
- std::transform(uniqueFolders.begin(), uniqueFolders.end(), std::back_inserter(output.directories),
- [](const Zstring & fn) { return toWx(fn); });
-
- output.commandline = std::wstring(L"\"") + zen::getFreeFileSyncLauncher() + L"\"" +
- L" \"" + filename + L"\"";
-
+ xmlAccess::XmlRealConfig output;
+ output.directories.assign(uniqueFolders.begin(), uniqueFolders.end());
+ output.commandline = Zstr("\"") + zen::getFreeFileSyncLauncher() + Zstr("\" \"") + filename + Zstr("\"");
return output;
}
bgstack15