diff options
author | Noel Grandin <noel@peralex.com> | 2013-02-12 17:20:49 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-03-04 10:13:19 +0200 |
commit | 57dbe20c2bfa0cf5ced0826f61a130414c948f83 (patch) | |
tree | 35a95e63d2080f0903f4270737ba3ccdc6ffd25a /svx | |
parent | 587c294daba76f89f8de17e86ab0cae495123997 (diff) |
fdo#46808, clean up some old queryInterface() calls
clean up stuff like this
xI->queryInterface( getCppuType((const Reference< XExtendedInputSequenceChecker>*)0) ) >>= xISC;
to
xISC.set(xI, UNO_QUERY);
Change-Id: I3b16a38c2a363440f6079cfe6ae47f009d3940db
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/accessibility/AccessibleControlShape.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/accessibility/AccessibleControlShape.cxx b/svx/source/accessibility/AccessibleControlShape.cxx index 972804e61dc4..17084fe7b881 100644 --- a/svx/source/accessibility/AccessibleControlShape.cxx +++ b/svx/source/accessibility/AccessibleControlShape.cxx @@ -265,8 +265,8 @@ void AccessibleControlShape::Init() if ( xNativeControlContext.is() ) { m_xControlContextProxy = xFactory->createProxy( xNativeControlContext ); - OSL_VERIFY( xNativeControlContext->queryInterface( ::getCppuType( &m_xControlContextTypeAccess ) ) >>= m_xControlContextTypeAccess ); - OSL_VERIFY( xNativeControlContext->queryInterface( ::getCppuType( &m_xControlContextComponent ) ) >>= m_xControlContextComponent ); + m_xControlContextTypeAccess.set( xNativeControlContext, UNO_QUERY_THROW ); + m_xControlContextComponent.set( xNativeControlContext, UNO_QUERY_THROW ); // aggregate the proxy osl_atomic_increment( &m_refCount ); |