diff options
| author | Neil <nyamatongwe@gmail.com> | 2017-04-19 17:44:09 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2017-04-19 17:44:09 +1000 |
| commit | d9a4e803d7b5e9fde3009052653ec3fdf77c5c09 (patch) | |
| tree | 45858426901e942a5f1cd8b1f4a5805902e125c0 /src/XPM.h | |
| parent | c085f3f8458110eca0874343b45b34acc9827631 (diff) | |
| download | scintilla-mirror-d9a4e803d7b5e9fde3009052653ec3fdf77c5c09.tar.gz | |
Use =delete for unwanted functions.
Diffstat (limited to 'src/XPM.h')
| -rw-r--r-- | src/XPM.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -43,9 +43,6 @@ private: * A translucent image stored as a sequence of RGBA bytes. */ class RGBAImage { - // Deleted so RGBAImage objects can not be copied - RGBAImage(const RGBAImage &) = delete; - RGBAImage &operator=(const RGBAImage &) = delete; int height; int width; float scale; @@ -53,6 +50,9 @@ class RGBAImage { public: RGBAImage(int width_, int height_, float scale_, const unsigned char *pixels_); explicit RGBAImage(const XPM &xpm); + // Deleted so RGBAImage objects can not be copied + RGBAImage(const RGBAImage &) = delete; + RGBAImage &operator=(const RGBAImage &) = delete; virtual ~RGBAImage(); int GetHeight() const { return height; } int GetWidth() const { return width; } |
