From d41b5a88bd4fdff79975d0a64a56d6aae2be1f22 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 24 Mar 2012 14:00:06 +0000 Subject: reduce over use of static OUStrings --- sw/source/ui/vba/vbasection.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sw/source/ui/vba/vbasection.cxx') diff --git a/sw/source/ui/vba/vbasection.cxx b/sw/source/ui/vba/vbasection.cxx index 6ca39e55dbfd..beb3d2e5f188 100644 --- a/sw/source/ui/vba/vbasection.cxx +++ b/sw/source/ui/vba/vbasection.cxx @@ -74,11 +74,10 @@ SwVbaSection::PageSetup( ) throw (uno::RuntimeException) return uno::makeAny( uno::Reference< word::XPageSetup >( new SwVbaPageSetup( this, mxContext, mxModel, mxPageProps ) ) ); } -rtl::OUString& +rtl::OUString SwVbaSection::getServiceImplName() { - static rtl::OUString sImplName( RTL_CONSTASCII_USTRINGPARAM("SwVbaSection") ); - return sImplName; + return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SwVbaSection")); } uno::Sequence< rtl::OUString > -- cgit