summaryrefslogtreecommitdiff
path: root/bridges/test/testoffice.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bridges/test/testoffice.cxx')
-rw-r--r--bridges/test/testoffice.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/bridges/test/testoffice.cxx b/bridges/test/testoffice.cxx
index 9d01beed3ced..0fca5082a61b 100644
--- a/bridges/test/testoffice.cxx
+++ b/bridges/test/testoffice.cxx
@@ -37,6 +37,7 @@
#include <com/sun/star/lang/XComponent.hpp>
+#include <com/sun/star/frame/Desktop.hpp>
#include <com/sun/star/frame/XComponentLoader.hpp>
#include <cppuhelper/weak.hxx>
@@ -128,11 +129,7 @@ void testWriter( const Reference < XComponent > & rCmp )
void testDocument( const Reference < XMultiServiceFactory > & rSmgr )
{
- Reference < XComponentLoader > rLoader(
- rSmgr->createInstance( OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.frame.Desktop" ))),
- UNO_QUERY );
-
- OSL_ASSERT( rLoader.is() );
+ Reference < XDesktop2 > rLoader = Desktop::create( comphelper::getComponentContext(rSmgr) );
sal_Char *urls[] = {
"private:factory/swriter",