summaryrefslogtreecommitdiff
path: root/RealtimeSync/xmlFreeFileSync.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:01:29 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:01:29 +0200
commit9a2a524f1e311853d08050be2dcdddc09ac7759a (patch)
treed8e4a24169fce88c2d89931d58514889a0bcb0ea /RealtimeSync/xmlFreeFileSync.cpp
parent2.3 (diff)
downloadFreeFileSync-9a2a524f1e311853d08050be2dcdddc09ac7759a.tar.gz
FreeFileSync-9a2a524f1e311853d08050be2dcdddc09ac7759a.tar.bz2
FreeFileSync-9a2a524f1e311853d08050be2dcdddc09ac7759a.zip
3.0
Diffstat (limited to 'RealtimeSync/xmlFreeFileSync.cpp')
-rw-r--r--RealtimeSync/xmlFreeFileSync.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/RealtimeSync/xmlFreeFileSync.cpp b/RealtimeSync/xmlFreeFileSync.cpp
index b3c11d50..dc352135 100644
--- a/RealtimeSync/xmlFreeFileSync.cpp
+++ b/RealtimeSync/xmlFreeFileSync.cpp
@@ -4,10 +4,13 @@
#include "../shared/zstring.h"
#include "functions.h"
#include "../shared/xmlBase.h"
+#include "../shared/stringConv.h"
//include FreeFileSync xml headers
#include "../library/processXml.h"
+using namespace FreeFileSync;
+
#ifdef FFS_WIN
struct CmpNoCase
@@ -31,20 +34,20 @@ xmlAccess::XmlRealConfig convertBatchToReal(const xmlAccess::XmlBatchConfig& bat
#endif
//add main folders
- uniqueFolders.insert(batchCfg.mainCfg.mainFolderPair.leftDirectory.c_str());
- uniqueFolders.insert(batchCfg.mainCfg.mainFolderPair.rightDirectory.c_str());
+ uniqueFolders.insert(zToWx(batchCfg.mainCfg.mainFolderPair.leftDirectory));
+ uniqueFolders.insert(zToWx(batchCfg.mainCfg.mainFolderPair.rightDirectory));
//additional folders
for (std::vector<FreeFileSync::FolderPairEnh>::const_iterator i = batchCfg.mainCfg.additionalPairs.begin();
i != batchCfg.mainCfg.additionalPairs.end(); ++i)
{
- uniqueFolders.insert(i->leftDirectory.c_str());
- uniqueFolders.insert(i->rightDirectory.c_str());
+ uniqueFolders.insert(zToWx(i->leftDirectory));
+ uniqueFolders.insert(zToWx(i->rightDirectory));
}
output.directories.insert(output.directories.end(), uniqueFolders.begin(), uniqueFolders.end());
- output.commandline = FreeFileSync::getInstallationDir() + globalFunctions::FILE_NAME_SEPARATOR + wxT("FreeFileSync.exe ") +
+ output.commandline = FreeFileSync::getInstallationDir() + zToWx(globalFunctions::FILE_NAME_SEPARATOR) + wxT("FreeFileSync.exe ") +
wxT("\"") + filename + wxT("\"");
return output;
bgstack15