diff options
author | Noel Grandin <noel@peralex.com> | 2013-02-08 11:02:37 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-02-11 08:02:13 +0200 |
commit | 591ef7844079e93ff627c7e194c04d520d2f1d55 (patch) | |
tree | 39c16f140ef2eae20f00a6c078d49519d4bd6bdc /framework/source/uielement | |
parent | 81c967e06e4247dec7ecb9ffec695ba31cb4f057 (diff) |
fdo#46808, Use singleton util::theMacroExpander new-style constructor
And deprecate the old-style service util::MacroExpander
Change-Id: Ifcefe31a8f8c68c6d44d6ec19616727eb607e1cd
Diffstat (limited to 'framework/source/uielement')
-rw-r--r-- | framework/source/uielement/imagebuttontoolbarcontroller.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/framework/source/uielement/imagebuttontoolbarcontroller.cxx b/framework/source/uielement/imagebuttontoolbarcontroller.cxx index e57af2e878dd..cabe8b14005e 100644 --- a/framework/source/uielement/imagebuttontoolbarcontroller.cxx +++ b/framework/source/uielement/imagebuttontoolbarcontroller.cxx @@ -27,7 +27,7 @@ #include <com/sun/star/frame/XDispatchProvider.hpp> #include <com/sun/star/beans/PropertyValue.hpp> #include <com/sun/star/frame/XControlNotificationListener.hpp> -#include "com/sun/star/util/XMacroExpander.hpp" +#include "com/sun/star/util/theMacroExpander.hpp" #include "com/sun/star/uno/XComponentContext.hpp" #include <rtl/uri.hxx> @@ -73,9 +73,7 @@ uno::Reference< util::XMacroExpander > GetMacroExpander() { uno::Reference< uno::XComponentContext > xContext( comphelper::getProcessComponentContext() ); - m_xMacroExpander = Reference< com::sun::star::util::XMacroExpander >( xContext->getValueByName( - ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "/singletons/com.sun.star.util.theMacroExpander"))), - UNO_QUERY ); + m_xMacroExpander = util::theMacroExpander::get(xContext); xMacroExpander = m_xMacroExpander; } } |