diff options
Diffstat (limited to 'Source/cmLocale.h')
-rw-r--r-- | Source/cmLocale.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmLocale.h b/Source/cmLocale.h index 086f448..9f90a3a 100644 --- a/Source/cmLocale.h +++ b/Source/cmLocale.h @@ -10,6 +10,8 @@ class cmLocaleRAII { + CM_DISABLE_COPY(cmLocaleRAII) + public: cmLocaleRAII() : OldLocale(setlocale(LC_CTYPE, CM_NULLPTR)) @@ -19,9 +21,6 @@ public: ~cmLocaleRAII() { setlocale(LC_CTYPE, this->OldLocale.c_str()); } private: - cmLocaleRAII(cmLocaleRAII const&); - cmLocaleRAII& operator=(cmLocaleRAII const&); - std::string OldLocale; }; |