diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-03-24 14:00:06 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-03-26 12:18:08 +0100 |
commit | d41b5a88bd4fdff79975d0a64a56d6aae2be1f22 (patch) | |
tree | 79f755f5f8bdc4d4e9485e6afe2c12fac168413f /sw/source/ui/vba/vbadocumentproperties.cxx | |
parent | 35fe7d4365f0fd9e118d17bb4b579cf303cd6720 (diff) |
reduce over use of static OUStrings
Diffstat (limited to 'sw/source/ui/vba/vbadocumentproperties.cxx')
-rw-r--r-- | sw/source/ui/vba/vbadocumentproperties.cxx | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/sw/source/ui/vba/vbadocumentproperties.cxx b/sw/source/ui/vba/vbadocumentproperties.cxx index 1606d102f9e8..6dfcc14b99bb 100644 --- a/sw/source/ui/vba/vbadocumentproperties.cxx +++ b/sw/source/ui/vba/vbadocumentproperties.cxx @@ -307,7 +307,7 @@ public: //XDefaultProperty virtual ::rtl::OUString SAL_CALL getDefaultPropertyName( ) throw (uno::RuntimeException) { return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Value")); } // XHelperInterface - virtual rtl::OUString& getServiceImplName(); + virtual rtl::OUString getServiceImplName(); virtual uno::Sequence<rtl::OUString> getServiceNames(); }; @@ -459,11 +459,10 @@ SwVbaBuiltInDocumentProperty::setLinkSource( const rtl::OUString& /*LinkSource*/ throw uno::RuntimeException(); } -rtl::OUString& +rtl::OUString SwVbaBuiltInDocumentProperty::getServiceImplName() { - static rtl::OUString sImplName( RTL_CONSTASCII_USTRINGPARAM("SwVbaBuiltinDocumentProperty") ); - return sImplName; + return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SwVbaBuiltinDocumentProperty")); } uno::Sequence<rtl::OUString> @@ -615,11 +614,10 @@ SwVbaBuiltinDocumentProperties::createCollectionObject( const uno::Any& aSource } // XHelperInterface -rtl::OUString& +rtl::OUString SwVbaBuiltinDocumentProperties::getServiceImplName() { - static rtl::OUString sImplName( RTL_CONSTASCII_USTRINGPARAM("SwVbaBuiltinDocumentProperties") ); - return sImplName; + return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SwVbaBuiltinDocumentProperties")); } uno::Sequence<rtl::OUString> @@ -756,11 +754,10 @@ SwVbaCustomDocumentProperties::Add( const ::rtl::OUString& Name, ::sal_Bool Link } // XHelperInterface -rtl::OUString& +rtl::OUString SwVbaCustomDocumentProperties::getServiceImplName() { - static rtl::OUString sImplName( RTL_CONSTASCII_USTRINGPARAM("SwVbaCustomDocumentProperties") ); - return sImplName; + return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SwVbaCustomDocumentProperties")); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |