From 9a05e196382ebe4ef7993039d069ab6312b60fac Mon Sep 17 00:00:00 2001 From: sammycage Date: Sun, 16 Jul 2023 15:29:02 +0100 Subject: [PATCH] Implement move constructor for Document class #135 --- include/lunasvg.h | 1 + source/lunasvg.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/lunasvg.h b/include/lunasvg.h index 8ba024b..43308c8 100644 --- a/include/lunasvg.h +++ b/include/lunasvg.h @@ -204,6 +204,7 @@ class LUNASVG_API Document { */ Bitmap renderToBitmap(std::uint32_t width = 0, std::uint32_t height = 0, std::uint32_t backgroundColor = 0x00000000) const; + Document(Document&&); ~Document(); private: diff --git a/source/lunasvg.cpp b/source/lunasvg.cpp index 95186f0..c11d0e5 100644 --- a/source/lunasvg.cpp +++ b/source/lunasvg.cpp @@ -364,8 +364,8 @@ Bitmap Document::renderToBitmap(std::uint32_t width, std::uint32_t height, std:: return bitmap; } -Document::Document() = default; - +Document::Document(Document&&) = default; Document::~Document() = default; +Document::Document() = default; } // namespace lunasvg