[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[adonthell-commits] master 6cc0eff 3/3: FIXED compile error
From: |
Kai Sterker |
Subject: |
[adonthell-commits] master 6cc0eff 3/3: FIXED compile error |
Date: |
Tue, 26 Jul 2016 20:54:03 +0000 (UTC) |
branch: master
commit 6cc0eff801ab97b2c443dcc8317ef13dab357126
Author: Kai Sterker <address@hidden>
Commit: Kai Sterker <address@hidden>
FIXED compile error
---
src/tools/dlgedit/cfg_io.cc | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/tools/dlgedit/cfg_io.cc b/src/tools/dlgedit/cfg_io.cc
index 4aef719..d4080a5 100644
--- a/src/tools/dlgedit/cfg_io.cc
+++ b/src/tools/dlgedit/cfg_io.cc
@@ -27,6 +27,7 @@
*/
#include <stdio.h>
+#include <cstring>
#include <cstdlib>
#include <glib/gstdio.h>
#include "cfg_io.h"
@@ -42,21 +43,21 @@ CfgIO::CfgIO ()
{
#if defined(__APPLE__)
// OSX
- Dlgeditrc = string (getenv ("HOME")) + "/Library/Application
Support/Adonthell/dlgeditrc";
+ Dlgeditrc = std::string (getenv ("HOME")) + "/Library/Application
Support/Adonthell/dlgeditrc";
#elif defined (WIN32)
// Windows
char *appDataDir = getenv ("APPDATA");
if (appDataDir != NULL && strlen (appDataDir) > 0)
- Dlgeditrc = string (getenv("APPDATA")) + "/Adonthell/dlgeditrc";
+ Dlgeditrc = std::string (getenv("APPDATA")) + "/Adonthell/dlgeditrc";
else
Dlgeditrc = "./dlgeditrc";
#else
// Unix
char *xdgDir = getenv ("XDG_CONFIG_HOME");
if (xdgDir != NULL && strlen (xdgDir) > 0)
- result = string (xdgDir) + "/adonthell/dlgeditrc";
+ Dlgeditrc = std::string (xdgDir) + "/adonthell/dlgeditrc";
else
- result = string (getenv ("HOME")) + "/.config/adonthell/dlgeditrc";
+ Dlgeditrc = std::string (getenv ("HOME")) +
"/.config/adonthell/dlgeditrc";
#endif
// loadcfgin is declared in lex.loadcfg.cc