Get rid of trivial comphelper::query_interface wrapper

Change-Id: I2b9dafd2a34d055dcd8b8c4d894be30dc821d3be
This commit is contained in:
Stephan Bergmann
2015-04-21 08:56:05 +02:00
parent 4592d27dca
commit 08a943fc37
10 changed files with 29 additions and 50 deletions

View File

@@ -40,7 +40,7 @@ OComponentEventThread::OComponentEventThread( ::cppu::OComponentHelper* pCompImp
// Hold a reference of the Control
{
InterfaceRef xIFace(static_cast<XWeak*>(pCompImpl));
query_interface(xIFace, m_xComp);
m_xComp.set(xIFace, css::uno::UNO_QUERY);
}
// and add us at the Control
@@ -189,7 +189,8 @@ void OComponentEventThread::run()
// the mutex is locked.
Reference<XControl> xControl;
if ( xControlAdapter.is() )
query_interface(xControlAdapter->queryAdapted(), xControl);
xControl.set(
xControlAdapter->queryAdapted(), css::uno::UNO_QUERY);
if( xComp.is() )
processEvent( pCompImpl, pEvt.get(), xControl, bFlag );