summaryrefslogtreecommitdiff
path: root/basic/qa/cppunit/test_vba.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basic/qa/cppunit/test_vba.cxx')
-rw-r--r--basic/qa/cppunit/test_vba.cxx6
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() )