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