summaryrefslogtreecommitdiff
path: root/include/comphelper
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2019-06-22 00:17:00 +0300
committerStephan Bergmann <sbergman@redhat.com>2019-06-24 09:09:50 +0200
commit3d4b1c0eee7a3055e67df6b0b342ea25b0f5bf55 (patch)
treee2031c475a09c591548a60e1136371ed5556b8d4 /include/comphelper
parentaed859c4825e10f0981686b9d8476538255b666f (diff)
tdf#39593 Change comphelper::getImplementation signature
To merge with comphelper::getUnoTunnelImplementation Change-Id: I976d768d7fb159d50fa90e27ec36f2bea91ea2cb Reviewed-on: https://gerrit.libreoffice.org/74542 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/comphelper')
-rw-r--r--include/comphelper/types.hxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/comphelper/types.hxx b/include/comphelper/types.hxx
index 1e5b2f9f0a90..3b9c3ef1617b 100644
--- a/include/comphelper/types.hxx
+++ b/include/comphelper/types.hxx
@@ -52,14 +52,13 @@ namespace comphelper
}
template <class TYPE>
- bool getImplementation(TYPE*& _pObject, const css::uno::Reference< css::uno::XInterface >& _rxIFace)
+ TYPE* getImplementation(const css::uno::Reference< css::uno::XInterface >& _rxIFace)
{
- _pObject = nullptr;
css::uno::Reference< css::lang::XUnoTunnel > xTunnel(_rxIFace, css::uno::UNO_QUERY);
if (xTunnel.is())
- _pObject = reinterpret_cast< TYPE* >(xTunnel->getSomething(TYPE::getUnoTunnelImplementationId()));
+ return reinterpret_cast< TYPE* >(xTunnel->getSomething(TYPE::getUnoTunnelImplementationId()));
- return (_pObject != nullptr);
+ return nullptr;
}