summaryrefslogtreecommitdiff
path: root/lib/ffs_paths.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:19:49 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:19:49 +0200
commitc8e0e909b4a8d18319fc65434a10dc446434817c (patch)
treeeee91e7d2ce229dd043811eae8f1e2bd78061916 /lib/ffs_paths.h
parent5.2 (diff)
downloadFreeFileSync-c8e0e909b4a8d18319fc65434a10dc446434817c.tar.gz
FreeFileSync-c8e0e909b4a8d18319fc65434a10dc446434817c.tar.bz2
FreeFileSync-c8e0e909b4a8d18319fc65434a10dc446434817c.zip
5.3
Diffstat (limited to 'lib/ffs_paths.h')
-rw-r--r--lib/ffs_paths.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/lib/ffs_paths.h b/lib/ffs_paths.h
index ac032e6b..9376825b 100644
--- a/lib/ffs_paths.h
+++ b/lib/ffs_paths.h
@@ -79,14 +79,7 @@ Zstring getResourceDir()
if (isPortableVersion())
return impl::getBinaryDir();
else //use OS' standard paths
- {
- Zstring resourceDir = toZ(wxStandardPathsBase::Get().GetResourcesDir());
-
- if (!endsWith(resourceDir, FILE_NAME_SEPARATOR))
- resourceDir += FILE_NAME_SEPARATOR;
-
- return resourceDir;
- }
+ return appendSeparator(toZ(wxStandardPathsBase::Get().GetResourcesDir()));
#endif
}
@@ -113,10 +106,7 @@ Zstring getConfigDir()
}
catch (const FileError&) {}
- if (!endsWith(userDirectory, FILE_NAME_SEPARATOR))
- userDirectory += FILE_NAME_SEPARATOR;
-
- return userDirectory;
+ return appendSeparator(userDirectory);
}
}
bgstack15