diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-29 15:48:45 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-10-30 08:10:22 +0200 |
commit | 065c8b48a604b70140862d0d02deb584626d6994 (patch) | |
tree | 578c07b470b8ec9e5908d224c2fbf33cadda5adf /basic/qa | |
parent | addb63fa8ac9fa1a29a00e886e7ae177b604494c (diff) |
use uno::Reference::set method instead of assignment
Change-Id: I58410209f32f988f258a588364e0b037c2790211
Diffstat (limited to 'basic/qa')
-rw-r--r-- | basic/qa/cppunit/test_vba.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/basic/qa/cppunit/test_vba.cxx b/basic/qa/cppunit/test_vba.cxx index f7ddc6c494ec..ba145621b0e8 100644 --- a/basic/qa/cppunit/test_vba.cxx +++ b/basic/qa/cppunit/test_vba.cxx @@ -91,10 +91,8 @@ void VBATest::testMiscOLEStuff() if( xContext.is() ) { uno::Reference<lang::XMultiComponentFactory> xSMgr = xContext->getServiceManager(); - xOLEFactory = uno::Reference<lang::XMultiServiceFactory>( - xSMgr->createInstanceWithContext( - "com.sun.star.bridge.OleObjectFactory", - xContext ), uno::UNO_QUERY ); + xOLEFactory.set( xSMgr->createInstanceWithContext( "com.sun.star.bridge.OleObjectFactory", xContext ), + uno::UNO_QUERY ); } bool bOk = false; if( xOLEFactory.is() ) |