diff options
author | Vicente <unknown> | 2017-03-06 14:54:51 +1100 |
---|---|---|
committer | Vicente <unknown> | 2017-03-06 14:54:51 +1100 |
commit | 069d842392251d56167e08c005d51fa9ccc12147 (patch) | |
tree | 51d5396606bffade50d291781d5227cc404cd87d /src/XPM.h | |
parent | 41c0c0f7083c0ddde020cf847cddef7894f2ded4 (diff) | |
download | scintilla-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.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |