summaryrefslogtreecommitdiff
path: root/RealtimeSync/xml_ffs.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:26:50 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:26:50 +0200
commit669df123648aaa6aeccc70206b5417bc48b4e9ae (patch)
tree463c107a8d6405020bb304f7a7253e6b64afeee0 /RealtimeSync/xml_ffs.cpp
parent5.18 (diff)
downloadFreeFileSync-669df123648aaa6aeccc70206b5417bc48b4e9ae.tar.gz
FreeFileSync-669df123648aaa6aeccc70206b5417bc48b4e9ae.tar.bz2
FreeFileSync-669df123648aaa6aeccc70206b5417bc48b4e9ae.zip
5.19
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