From d9a4e803d7b5e9fde3009052653ec3fdf77c5c09 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 19 Apr 2017 17:44:09 +1000 Subject: Use =delete for unwanted functions. --- src/XPM.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/XPM.h') diff --git a/src/XPM.h b/src/XPM.h index bb1b9b4f2..cc0d52bc0 100644 --- a/src/XPM.h +++ b/src/XPM.h @@ -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; } -- cgit v1.2.3