diff options
author | Neil <nyamatongwe@gmail.com> | 2018-04-28 10:31:25 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-04-28 10:31:25 +1000 |
commit | 9472b43539e7b4a6a3f5e657b0ec06e9e6e5eab9 (patch) | |
tree | 2486c7953942f70d46f805c5a809165c98424500 /src/ViewStyle.h | |
parent | 3173850f9261c9af83c91e92450879b233565670 (diff) | |
download | scintilla-mirror-9472b43539e7b4a6a3f5e657b0ec06e9e6e5eab9.tar.gz |
Delete standard functions on classes where there could be attempts to copy.
Diffstat (limited to 'src/ViewStyle.h')
-rw-r--r-- | src/ViewStyle.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ViewStyle.h b/src/ViewStyle.h index c2e052e03..2a4e7329a 100644 --- a/src/ViewStyle.h +++ b/src/ViewStyle.h @@ -32,7 +32,9 @@ public: FontNames(); // FontNames objects can not be copied. FontNames(const FontNames &) = delete; + FontNames(FontNames &&) = delete; FontNames &operator=(const FontNames &) = delete; + FontNames &operator=(FontNames &&) = delete; ~FontNames(); void Clear(); const char *Save(const char *name); @@ -44,7 +46,9 @@ public: FontRealised(); // FontRealised objects can not be copied. FontRealised(const FontRealised &) = delete; + FontRealised(FontRealised &&) = delete; FontRealised &operator=(const FontRealised &) = delete; + FontRealised &operator=(FontRealised &&) = delete; virtual ~FontRealised(); void Realise(Surface &surface, int zoomLevel, int technology, const FontSpecification &fs); }; @@ -174,8 +178,10 @@ public: ViewStyle(); ViewStyle(const ViewStyle &source); + ViewStyle(ViewStyle &&) = delete; // Can only be copied through copy constructor which ensures font names initialised correctly ViewStyle &operator=(const ViewStyle &) = delete; + ViewStyle &operator=(ViewStyle &&) = delete; ~ViewStyle(); void CalculateMarginWidthAndMask(); void Init(size_t stylesSize_=256); |