diff options
| author | Neil <nyamatongwe@gmail.com> | 2021-10-29 21:35:57 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2021-10-29 21:35:57 +1100 |
| commit | 576392a0bb0823b6f980db1d3db60149512e91e4 (patch) | |
| tree | 98faa538626b48c5a0c64bd934af5f1985e4fd04 /src/XPM.h | |
| parent | abc48010e67cb7467f2825fdb497ed491e60bb52 (diff) | |
| download | scintilla-mirror-576392a0bb0823b6f980db1d3db60149512e91e4.tar.gz | |
Remove standard operations for XPM module to follow rule-of-zero.
Diffstat (limited to 'src/XPM.h')
| -rw-r--r-- | src/XPM.h | 16 |
1 files changed, 0 insertions, 16 deletions
@@ -25,11 +25,6 @@ class XPM { public: explicit XPM(const char *textForm); explicit XPM(const char *const *linesForm); - XPM(const XPM &) = default; - XPM(XPM &&) noexcept = default; - XPM &operator=(const XPM &) = default; - XPM &operator=(XPM &&) noexcept = default; - ~XPM(); void Init(const char *textForm); void Init(const char *const *linesForm); /// Decompose image into runs and use FillRectangle for each run @@ -53,11 +48,6 @@ public: static constexpr size_t bytesPerPixel = 4; RGBAImage(int width_, int height_, float scale_, const unsigned char *pixels_); explicit RGBAImage(const XPM &xpm); - RGBAImage(const RGBAImage &) = default; - RGBAImage(RGBAImage &&) noexcept = default; - RGBAImage &operator=(const RGBAImage &) = default; - RGBAImage &operator=(RGBAImage &&) noexcept = default; - virtual ~RGBAImage(); int GetHeight() const noexcept { return height; } int GetWidth() const noexcept { return width; } float GetScale() const noexcept { return scale; } @@ -79,12 +69,6 @@ class RGBAImageSet { mutable int width; ///< Memorize largest width of the set. public: RGBAImageSet(); - // Deleted so RGBAImageSet objects can not be copied. - RGBAImageSet(const RGBAImageSet &) = delete; - RGBAImageSet(RGBAImageSet &&) = delete; - RGBAImageSet &operator=(const RGBAImageSet &) = delete; - RGBAImageSet &operator=(RGBAImageSet &&) = delete; - ~RGBAImageSet(); /// Remove all images. void Clear() noexcept; /// Add an image. |
