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 --- sc/source/ui/vba/vbapivottables.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sc/source/ui/vba/vbapivottables.cxx') diff --git a/sc/source/ui/vba/vbapivottables.cxx b/sc/source/ui/vba/vbapivottables.cxx index b7e090d1a841..d2f5c47813f3 100644 --- a/sc/source/ui/vba/vbapivottables.cxx +++ b/sc/source/ui/vba/vbapivottables.cxx @@ -75,11 +75,10 @@ ScVbaPivotTables::getElementType() throw (uno::RuntimeException) return excel::XPivotTable::static_type(0); } -rtl::OUString& +rtl::OUString ScVbaPivotTables::getServiceImplName() { - static rtl::OUString sImplName( RTL_CONSTASCII_USTRINGPARAM("ScVbaPivotTables") ); - return sImplName; + return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ScVbaPivotTables")); } css::uno::Sequence -- cgit