summaryrefslogtreecommitdiffstats
path: root/Source/cmLocale.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmLocale.h')
-rw-r--r--Source/cmLocale.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/cmLocale.h b/Source/cmLocale.h
index f35e528..cca7cf5 100644
--- a/Source/cmLocale.h
+++ b/Source/cmLocale.h
@@ -5,13 +5,12 @@
#include <cmConfigure.h>
-#include "cmStandardIncludes.h"
-
#include <locale.h>
+#include <string>
class cmLocaleRAII
{
- const char* OldLocale;
+ std::string OldLocale;
public:
cmLocaleRAII()
@@ -19,7 +18,7 @@ public:
{
setlocale(LC_CTYPE, "");
}
- ~cmLocaleRAII() { setlocale(LC_CTYPE, this->OldLocale); }
+ ~cmLocaleRAII() { setlocale(LC_CTYPE, this->OldLocale.c_str()); }
};
#endif