fix some legacy issues

This commit is contained in:
Jinhao 2017-09-30 07:19:15 +08:00
parent a3cd37b9d5
commit 28e9bb8a7d
2 changed files with 3 additions and 3 deletions

View File

@ -85,13 +85,13 @@ namespace nana
bool changed() const; ///< Returns true if the graphics object is operated bool changed() const; ///< Returns true if the graphics object is operated
bool empty() const; ///< Returns true if the graphics object does not refer to any resource. bool empty() const; ///< Returns true if the graphics object does not refer to any resource.
operator const void*() const; explicit operator bool() const noexcept;
drawable_type handle() const; drawable_type handle() const;
const void* pixmap() const; const void* pixmap() const;
const void* context() const; const void* context() const;
void swap(graphics& other); void swap(graphics& other) noexcept;
/// Creates a graphics/drawable resource /// Creates a graphics/drawable resource
/** /**

View File

@ -269,7 +269,7 @@ namespace paint
return (!impl_->handle); return (!impl_->handle);
} }
graphics::operator const void *() const graphics::operator bool() const
{ {
return impl_->handle; return impl_->handle;
} }