summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-07-04 14:57:07 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-07-04 14:57:07 (GMT)
commitbb4213205476b33bb9d27e57f53ba5bba4e40a8c (patch)
treedf9774156aa1283efa2d19aca029daa37e719ea5 /Swiften/Application
parente49bc0460be4b94904b6e965845fb8f228672379 (diff)
downloadswift-bb4213205476b33bb9d27e57f53ba5bba4e40a8c.zip
swift-bb4213205476b33bb9d27e57f53ba5bba4e40a8c.tar.bz2
Fix for Windows compilation.
Diffstat (limited to 'Swiften/Application')
-rw-r--r--Swiften/Application/Windows/WindowsApplication.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/Swiften/Application/Windows/WindowsApplication.h b/Swiften/Application/Windows/WindowsApplication.h
index 7b9ee74..25267f7 100644
--- a/Swiften/Application/Windows/WindowsApplication.h
+++ b/Swiften/Application/Windows/WindowsApplication.h
@@ -16,13 +16,12 @@ namespace Swift {
}
boost::filesystem::path getSettingsDir() const {
- // FIXME: This is wrong
- boost::filesystem::path result(getHomeDir() / ("." + getName().getUTF8String()));
+ boost::filesystem::path result(getHomeDir() / getName().getUTF8String());
boost::filesystem::create_directory(result);
return result;
}
- boost::filesystem::path Application::getHomeDir() const {
+ boost::filesystem::path getHomeDir() const {
char* homeDirRaw = getenv("APPDATA");
if (!homeDirRaw) {
homeDirRaw = getenv("USERPROFILE");