diff options
author | Noel Grandin <noel@peralex.com> | 2013-05-14 13:51:41 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-05-15 08:25:36 +0200 |
commit | 33b4dc22f84e8f950b73daceb7339cfecf7fab81 (patch) | |
tree | de1d823b13680179e23f59ff8405724f9c02a8aa /basctl | |
parent | c909d7a7ee3b193af69546a6f0e98860cd4877bf (diff) |
fdo#46808, Use service constructor
Change-Id: I31a812dfd84a33e3b5f6f44bbd786e14a465886e
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/dlged/dlged.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/basctl/source/dlged/dlged.cxx b/basctl/source/dlged/dlged.cxx index 1e1b92732810..935dcfd5b0b4 100644 --- a/basctl/source/dlged/dlged.cxx +++ b/basctl/source/dlged/dlged.cxx @@ -33,7 +33,7 @@ #include "baside3.hxx" #include <com/sun/star/awt/XDialog.hpp> -#include <com/sun/star/resource/XStringResourcePersistence.hpp> +#include <com/sun/star/resource/StringResource.hpp> #include <com/sun/star/util/XCloneable.hpp> #include <com/sun/star/util/NumberFormatsSupplier.hpp> #include <comphelper/types.hxx> @@ -932,11 +932,8 @@ void DlgEditor::Paste() Reference< resource::XStringResourcePersistence > xStringResourcePersistence; if( nCtrls > 0 && bSourceIsLocalized ) { - Reference< lang::XMultiServiceFactory > xSMgr = getProcessServiceFactory(); - xStringResourcePersistence = Reference< resource::XStringResourcePersistence >( xSMgr->createInstance - ( "com.sun.star.resource.StringResource" ), UNO_QUERY ); - if( xStringResourcePersistence.is() ) - xStringResourcePersistence->importBinary( aResData ); + xStringResourcePersistence = css::resource::StringResource::create( getProcessComponentContext() ); + xStringResourcePersistence->importBinary( aResData ); } for( sal_uInt32 n = 0; n < nCtrls; n++ ) { |