summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-21 08:56:05 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-21 08:56:51 +0200
commit08a943fc379c5f8af25128c935e93e6a9d82d136 (patch)
tree3a2e8dd41f7d52985630c168f60d98bdff375c04 /include
parent4592d27dca75e73218ddca2039b1a1332adc828c (diff)
Get rid of trivial comphelper::query_interface wrapper
Change-Id: I2b9dafd2a34d055dcd8b8c4d894be30dc821d3be
Diffstat (limited to 'include')
-rw-r--r--include/comphelper/uno3.hxx25
1 files changed, 0 insertions, 25 deletions
diff --git a/include/comphelper/uno3.hxx b/include/comphelper/uno3.hxx
index eae94a5866f5..d53f4ab59062 100644
--- a/include/comphelper/uno3.hxx
+++ b/include/comphelper/uno3.hxx
@@ -180,31 +180,6 @@ namespace comphelper
}
return _rxOut.is();
}
-
- /** ask for an iface of an object
- usage:<br/>
- Reference<XFoo> xFoo;<br/>
- if (query_interface(xAnything, xFoo))<br/>
- ....
- */
- template <class iface>
- bool query_interface(const InterfaceRef& _rxObject, ::com::sun::star::uno::Reference<iface>& _rxOut)
- {
- _rxOut = static_cast<iface*>(NULL);
- if (_rxObject.is())
- {
- ::com::sun::star::uno::Any aCheck = _rxObject->queryInterface(
- cppu::UnoType<iface>::get());
- if(aCheck.hasValue())
- {
- _rxOut = *static_cast<const ::com::sun::star::uno::Reference<iface>*>(aCheck.getValue());
- return _rxOut.is();
- }
- }
- return false;
- }
-
-
} // namespace comphelper