Skip to content

Commit

Permalink
Implement move constructor for Document class #135
Browse files Browse the repository at this point in the history
  • Loading branch information
sammycage committed Jul 16, 2023
1 parent 59d6f6b commit 9a05e19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions include/lunasvg.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions source/lunasvg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9a05e19

Please sign in to comment.