diff options
author | Noel Grandin <noel@peralex.com> | 2013-05-14 14:19:58 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-05-15 08:25:37 +0200 |
commit | be1833cbc497080af531a207f216a4f560c0b9e9 (patch) | |
tree | 405fd5cd58cf4229364c3bce84882f173cbb57b4 /cui/source/dialogs/scriptdlg.cxx | |
parent | bae42fd6dac1d6fa8330eeede66ec22cddb82311 (diff) |
fdo#46808, Convert singleton theBrowseNodeFactory to new style
Change-Id: I68fa7f5dde1928e895575bc602b54de83279fb7c
Diffstat (limited to 'cui/source/dialogs/scriptdlg.cxx')
-rw-r--r-- | cui/source/dialogs/scriptdlg.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cui/source/dialogs/scriptdlg.cxx b/cui/source/dialogs/scriptdlg.cxx index cc3bcc0076c5..672ff5e3e297 100644 --- a/cui/source/dialogs/scriptdlg.cxx +++ b/cui/source/dialogs/scriptdlg.cxx @@ -37,6 +37,7 @@ #include <com/sun/star/script/browse/BrowseNodeTypes.hpp> #include <com/sun/star/script/browse/XBrowseNodeFactory.hpp> #include <com/sun/star/script/browse/BrowseNodeFactoryViewTypes.hpp> +#include <com/sun/star/script/browse/theBrowseNodeFactory.hpp> #include <com/sun/star/script/provider/ScriptErrorRaisedException.hpp> #include <com/sun/star/script/provider/ScriptExceptionRaisedException.hpp> #include <com/sun/star/script/provider/ScriptFrameworkErrorType.hpp> @@ -166,12 +167,9 @@ void SFTreeListBox::Init( const OUString& language ) OUString userStr("user"); OUString shareStr("share"); - OUString singleton("/singletons/com.sun.star.script.browse.theBrowseNodeFactory"); - try { - Reference< browse::XBrowseNodeFactory > xFac( - xCtx->getValueByName( singleton ), UNO_QUERY_THROW ); + Reference< browse::XBrowseNodeFactory > xFac = browse::theBrowseNodeFactory::get(xCtx); rootNode.set( xFac->createView( browse::BrowseNodeFactoryViewTypes::MACROORGANIZER ) ); |