summaryrefslogtreecommitdiff
path: root/Source/cmLocale.h
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2017-04-23 22:50:47 +0200
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2017-04-24 22:03:06 +0200
commitd6f0006c0b12c74df2d93170262a017f15949320 (patch)
tree79e25c4662deb2b4875daca4bca61bc9e9cc4dbe /Source/cmLocale.h
parent3cb7048b521395fdc863dacacb85c6f7f28a1bc7 (diff)
downloadcmake-d6f0006c0b12c74df2d93170262a017f15949320.tar.gz
Use CM_DISABLE_COPY
Diffstat (limited to 'Source/cmLocale.h')
-rw-r--r--Source/cmLocale.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmLocale.h b/Source/cmLocale.h
index 086f448ef0..9f90a3a994 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;
};