summaryrefslogtreecommitdiff
path: root/include/rtl/ref.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/rtl/ref.hxx')
-rw-r--r--include/rtl/ref.hxx8
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.
*/