canvas: correct convention

add missing noexcept option.

Change-Id: I14eacb0fdb2c9bd40e365bf81bb5cc0b73239ffe
This commit is contained in:
Hermet Park 2020-04-27 02:00:38 +09:00
parent c813de45ca
commit 5120a7ae12
2 changed files with 2 additions and 2 deletions

View file

@ -90,7 +90,7 @@ public:
Canvas(RenderMethod*); Canvas(RenderMethod*);
virtual ~Canvas(); virtual ~Canvas();
int reserve(size_t n); int reserve(size_t n) noexcept;
virtual int push(std::unique_ptr<PaintNode> paint) noexcept; virtual int push(std::unique_ptr<PaintNode> paint) noexcept;
virtual int clear() noexcept; virtual int clear() noexcept;
virtual int update() noexcept; virtual int update() noexcept;

View file

@ -120,7 +120,7 @@ Canvas::~Canvas()
} }
int Canvas::reserve(size_t n) int Canvas::reserve(size_t n) noexcept
{ {
auto impl = pImpl.get(); auto impl = pImpl.get();
assert(impl); assert(impl);