summaryrefslogtreecommitdiff
path: root/include/tools/ref.hxx
diff options
context:
space:
mode:
authorJuan Picca <jumapico@gmail.com>2015-02-01 00:49:08 -0200
committerMichael Stahl <mstahl@redhat.com>2015-02-05 07:24:30 +0000
commit6e1d28efb3d314d553e970f197f19636ce4e0ded (patch)
treeeb7d4a61f4072eca56994c6be04d04ac7c5fc8ab /include/tools/ref.hxx
parente98b6027458dd9410e27c5f273f4db5cc1443b01 (diff)
fdo#39440: replace C-style cast's
* Add get() method to tools::SvRef Change-Id: I3825852176c9c37f3ee21f4fd57328b1c7451951 Reviewed-on: https://gerrit.libreoffice.org/14268 Tested-by: Michael Stahl <mstahl@redhat.com> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'include/tools/ref.hxx')
-rw-r--r--include/tools/ref.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/tools/ref.hxx b/include/tools/ref.hxx
index a2cba5088fad..7ae2535b5bd0 100644
--- a/include/tools/ref.hxx
+++ b/include/tools/ref.hxx
@@ -76,6 +76,8 @@ public:
bool Is() const { return pObj != 0; }
+ T * get() const { return pObj; }
+
T * operator &() const { return pObj; }
T * operator ->() const { assert(pObj != 0); return pObj; }