aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/XPM.h
diff options
context:
space:
mode:
authorVicente <unknown>2017-03-06 14:54:51 +1100
committerVicente <unknown>2017-03-06 14:54:51 +1100
commit069d842392251d56167e08c005d51fa9ccc12147 (patch)
tree51d5396606bffade50d291781d5227cc404cd87d /src/XPM.h
parent41c0c0f7083c0ddde020cf847cddef7894f2ded4 (diff)
downloadscintilla-mirror-069d842392251d56167e08c005d51fa9ccc12147.tar.gz
Use several C++11 features as examples so problems with these features are seen.
Features used are move constructor, unique_ptr, deleted functions, enum class, lambda expression, and range for loop.
Diffstat (limited to 'src/XPM.h')
-rw-r--r--src/XPM.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/XPM.h b/src/XPM.h
index b7b19014e..f41b9d184 100644
--- a/src/XPM.h
+++ b/src/XPM.h
@@ -43,9 +43,9 @@ private:
* A translucent image stored as a sequence of RGBA bytes.
*/
class RGBAImage {
- // Private so RGBAImage objects can not be copied
- RGBAImage(const RGBAImage &);
- RGBAImage &operator=(const RGBAImage &);
+ // Deleted so RGBAImage objects can not be copied
+ RGBAImage(const RGBAImage &) = delete;
+ RGBAImage &operator=(const RGBAImage &) = delete;
int height;
int width;
float scale;