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/Style.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/Style.h')
-rw-r--r-- | src/Style.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Style.h b/src/Style.h index 51ab5d3e6..58cc3cd82 100644 --- a/src/Style.h +++ b/src/Style.h @@ -34,8 +34,10 @@ class FontAlias : public Font { public: FontAlias(); // FontAlias objects can not be assigned except for initialization - FontAlias &operator=(const FontAlias &) = delete; FontAlias(const FontAlias &); + FontAlias(FontAlias &&) = delete; + FontAlias &operator=(const FontAlias &) = delete; + FontAlias &operator=(FontAlias &&) = delete; ~FontAlias() override; void MakeAlias(Font &fontOrigin); void ClearFont(); @@ -70,8 +72,10 @@ public: Style(); Style(const Style &source); + Style(Style &&) = delete; ~Style(); Style &operator=(const Style &source); + Style &operator=(Style &&) = delete; void Clear(ColourDesired fore_, ColourDesired back_, int size_, const char *fontName_, int characterSet_, |