diff options
Diffstat (limited to 'basic/source/uno')
-rw-r--r-- | basic/source/uno/namecont.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx index 7a954000d239..2baa1853a35b 100644 --- a/basic/source/uno/namecont.cxx +++ b/basic/source/uno/namecont.cxx @@ -62,6 +62,7 @@ #include <com/sun/star/script/LibraryNotLoadedException.hpp> #include <com/sun/star/script/vba/VBAScriptEventId.hpp> #include <com/sun/star/ucb/SimpleFileAccess.hpp> +#include <com/sun/star/util/PathSubstitution.hpp> #include <com/sun/star/deployment/ExtensionManager.hpp> #include <comphelper/componentcontext.hxx> #include <comphelper/storagehelper.hxx> @@ -388,11 +389,7 @@ SfxLibraryContainer::SfxLibraryContainer( void ) mxSFI = ucb::SimpleFileAccess::create( comphelper::ComponentContext(mxMSF).getUNOContext() ); - mxStringSubstitution = Reference< XStringSubstitution >( mxMSF->createInstance - ( OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.util.PathSubstitution")) ), UNO_QUERY ); - SAL_WARN_IF( - !mxStringSubstitution.is(), "basic", - "couldn't create PathSubstitution component"); + mxStringSubstitution = util::PathSubstitution::create( comphelper::ComponentContext(mxMSF).getUNOContext() ); } SfxLibraryContainer::~SfxLibraryContainer() |