diff options
Diffstat (limited to 'thirdparty/thorvg/src/lib/tvgCanvas.cpp')
-rw-r--r-- | thirdparty/thorvg/src/lib/tvgCanvas.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/thirdparty/thorvg/src/lib/tvgCanvas.cpp b/thirdparty/thorvg/src/lib/tvgCanvas.cpp index 95c66b94df..1dee370326 100644 --- a/thirdparty/thorvg/src/lib/tvgCanvas.cpp +++ b/thirdparty/thorvg/src/lib/tvgCanvas.cpp @@ -37,16 +37,21 @@ Canvas::~Canvas() } -Result Canvas::reserve(uint32_t n) noexcept +Result Canvas::reserve(TVG_UNUSED uint32_t n) noexcept { - if (!pImpl->paints.reserve(n)) return Result::FailedAllocation; - return Result::Success; + return Result::NonSupport; +} + + +list<Paint*>& Canvas::paints() noexcept +{ + return pImpl->paints; } Result Canvas::push(unique_ptr<Paint> paint) noexcept { - return pImpl->push(move(paint)); + return pImpl->push(std::move(paint)); } |