diff options
Diffstat (limited to 'include/rtl/ref.hxx')
-rw-r--r-- | include/rtl/ref.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/rtl/ref.hxx b/include/rtl/ref.hxx index b70088bcdfd3..5eeb857f8a42 100644 --- a/include/rtl/ref.hxx +++ b/include/rtl/ref.hxx @@ -195,6 +195,14 @@ public: return (m_pBody != NULL); } +#if defined LIBO_INTERNAL_ONLY + /** Returns True if the handle does point to a valid body. + */ + inline explicit operator bool() const + { + return is(); + } +#endif /** Returns True if this points to pBody. */ |