fix syntax errors

This commit is contained in:
Jinhao 2017-09-30 07:29:27 +08:00
parent 28e9bb8a7d
commit b730f368a4

View File

@ -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_);