Kaydet (Commit) 33b4dc22 authored tarafından Noel Grandin's avatar Noel Grandin

fdo#46808, Use service constructor

Change-Id: I31a812dfd84a33e3b5f6f44bbd786e14a465886e
üst c909d7a7
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#include "baside3.hxx" #include "baside3.hxx"
#include <com/sun/star/awt/XDialog.hpp> #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/XCloneable.hpp>
#include <com/sun/star/util/NumberFormatsSupplier.hpp> #include <com/sun/star/util/NumberFormatsSupplier.hpp>
#include <comphelper/types.hxx> #include <comphelper/types.hxx>
...@@ -932,11 +932,8 @@ void DlgEditor::Paste() ...@@ -932,11 +932,8 @@ void DlgEditor::Paste()
Reference< resource::XStringResourcePersistence > xStringResourcePersistence; Reference< resource::XStringResourcePersistence > xStringResourcePersistence;
if( nCtrls > 0 && bSourceIsLocalized ) if( nCtrls > 0 && bSourceIsLocalized )
{ {
Reference< lang::XMultiServiceFactory > xSMgr = getProcessServiceFactory(); xStringResourcePersistence = css::resource::StringResource::create( getProcessComponentContext() );
xStringResourcePersistence = Reference< resource::XStringResourcePersistence >( xSMgr->createInstance xStringResourcePersistence->importBinary( aResData );
( "com.sun.star.resource.StringResource" ), UNO_QUERY );
if( xStringResourcePersistence.is() )
xStringResourcePersistence->importBinary( aResData );
} }
for( sal_uInt32 n = 0; n < nCtrls; n++ ) for( sal_uInt32 n = 0; n < nCtrls; n++ )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment