From b730f368a4edf83a3da6b32c3c5bb60476b8d81b Mon Sep 17 00:00:00 2001 From: Jinhao Date: Sat, 30 Sep 2017 07:29:27 +0800 Subject: [PATCH] fix syntax errors --- source/paint/graphics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/paint/graphics.cpp b/source/paint/graphics.cpp index 00cb26de..f31f3afd 100644 --- a/source/paint/graphics.cpp +++ b/source/paint/graphics.cpp @@ -269,7 +269,7 @@ namespace paint return (!impl_->handle); } - graphics::operator bool() const + graphics::operator bool() const noexcept { return impl_->handle; } @@ -291,7 +291,7 @@ namespace paint return (impl_->handle ? impl_->handle->context : nullptr); } - void graphics::swap(graphics& other) + void graphics::swap(graphics& other) noexcept { if (context() != other.context()) impl_.swap(other.impl_);