summaryrefslogtreecommitdiff
path: root/RealtimeSync
diff options
context:
space:
mode:
Diffstat (limited to 'RealtimeSync')
-rw-r--r--RealtimeSync/main_dlg.cpp2
-rw-r--r--RealtimeSync/watcher.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/RealtimeSync/main_dlg.cpp b/RealtimeSync/main_dlg.cpp
index 447f1f01..3f22dcc3 100644
--- a/RealtimeSync/main_dlg.cpp
+++ b/RealtimeSync/main_dlg.cpp
@@ -339,7 +339,7 @@ void MainDialog::OnRemoveTopFolder(wxCommandEvent& event)
{
if (dirNamesExtra.size() > 0)
{
- const wxString topDir = (*dirNamesExtra.begin())->getName().c_str();
+ const wxString topDir = zToWx((*dirNamesExtra.begin())->getName());
dirNameFirst->setName(wxToZ(topDir));
diff --git a/RealtimeSync/watcher.cpp b/RealtimeSync/watcher.cpp
index cf2791ad..e9793545 100644
--- a/RealtimeSync/watcher.cpp
+++ b/RealtimeSync/watcher.cpp
@@ -64,7 +64,7 @@ public:
virtual ReturnValDir onDir(const Zchar* shortName, const Zstring& fullName)
{
m_dirs.push_back(fullName.c_str());
- return ReturnValDir(Loki::Int2Type<ReturnValDir::TRAVERSING_DIR_CONTINUE>(), this);
+ return ReturnValDir(Loki::Int2Type<ReturnValDir::TRAVERSING_DIR_CONTINUE>(), *this);
}
virtual void onError(const wxString& errorText)
{
@@ -247,7 +247,7 @@ rts::WaitResult rts::waitForChanges(const std::vector<Zstring>& dirNames, WaitCa
try //get all subdirectories
{
DirsOnlyTraverser traverser(fullDirList);
- ffs3::traverseFolder(formattedDir, false, &traverser); //don't traverse into symlinks (analog to windows build)
+ ffs3::traverseFolder(formattedDir, false, traverser); //don't traverse into symlinks (analog to windows build)
}
catch (const ffs3::FileError&)
{
bgstack15