summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-02-06 13:40:53 +0200
committerNoel Grandin <noel@peralex.com>2013-02-12 10:14:45 +0200
commitb0e7466f9d9dd952b081202145f8a831ce742c76 (patch)
treeadfd35b883185a27fb02a1096c032d40c6e9b75a /basctl
parent4b51374a7021d52f7f1be1861e2ee6a011b30ecd (diff)
fdo#46808, script::DocumentScriptLibraryContainer needed a new constructor
Change-Id: I9a657cf3fd7715b4890257e1aa4d97d0cf79cecc
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/moduldl2.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx
index f07e1af64be5..c64ee319ec1d 100644
--- a/basctl/source/basicide/moduldl2.cxx
+++ b/basctl/source/basicide/moduldl2.cxx
@@ -49,7 +49,7 @@
#include <com/sun/star/ui/dialogs/FolderPicker.hpp>
#include <com/sun/star/ui/dialogs/XFilterManager.hpp>
#include <com/sun/star/ui/dialogs/TemplateDescription.hpp>
-#include <com/sun/star/script/XLibraryContainer2.hpp>
+#include <com/sun/star/script/DocumentScriptLibraryContainer.hpp>
#include <com/sun/star/script/XLibraryContainerPassword.hpp>
#include <com/sun/star/script/XLibraryContainerExport.hpp>
#include <com/sun/star/task/InteractionHandler.hpp>
@@ -851,10 +851,8 @@ void LibPage::InsertLib()
OUString aModURL( aModURLObj.GetMainURL( INetURLObject::NO_DECODE ) );
if ( xSFA->exists( aModURL ) )
{
- Sequence <Any> aSeqModURL(1);
- aSeqModURL[0] <<= aModURL;
- xModLibContImport = Reference< script::XLibraryContainer2 >( xMSF->createInstanceWithArguments(
- "com.sun.star.script.DocumentScriptLibraryContainer", aSeqModURL ), UNO_QUERY );
+ xModLibContImport = Reference< script::XLibraryContainer2 >(
+ script::DocumentScriptLibraryContainer::createWithURL(xContext, aModURL), UNO_QUERY );
}
OUString aDlgURL( aDlgURLObj.GetMainURL( INetURLObject::NO_DECODE ) );