diff options
Diffstat (limited to 'Source/cmLocale.h')
-rw-r--r-- | Source/cmLocale.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/Source/cmLocale.h b/Source/cmLocale.h index 69640f6..e69c32e 100644 --- a/Source/cmLocale.h +++ b/Source/cmLocale.h @@ -19,15 +19,14 @@ class cmLocaleRAII { const char* OldLocale; + public: - cmLocaleRAII(): OldLocale(setlocale(LC_CTYPE, 0)) - { + cmLocaleRAII() + : OldLocale(setlocale(LC_CTYPE, 0)) + { setlocale(LC_CTYPE, ""); - } - ~cmLocaleRAII() - { - setlocale(LC_CTYPE, this->OldLocale); - } + } + ~cmLocaleRAII() { setlocale(LC_CTYPE, this->OldLocale); } }; #endif |