diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-01 12:13:10 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-01 15:21:18 +0100 |
commit | ed132e5b9dfaa226395534462eff956df9a7412f (patch) | |
tree | fcf5057dce2c497beb0bde3e91f168f5150252c2 | |
parent | 054c7e4a4c0f20eeedee9b69d3012592cbd1bf30 (diff) |
overly static
-rw-r--r-- | sfx2/source/doc/SfxDocumentMetaData.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sfx2/source/doc/SfxDocumentMetaData.cxx b/sfx2/source/doc/SfxDocumentMetaData.cxx index b2af198fc505..66e1b049937d 100644 --- a/sfx2/source/doc/SfxDocumentMetaData.cxx +++ b/sfx2/source/doc/SfxDocumentMetaData.cxx @@ -2399,12 +2399,8 @@ namespace comp_CompatWriterDocProps { css::uno::Sequence< ::rtl::OUString > SAL_CALL _getSupportedServiceNames() { - static css::uno::Sequence< rtl::OUString > aServiceNames; - if ( aServiceNames.getLength() == 0 ) - { - aServiceNames.realloc( 1 ); - aServiceNames[ 0 ] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.writer.DocumentProperties" ) ); - } + css::uno::Sequence< rtl::OUString > aServiceNames(1); + aServiceNames[ 0 ] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.writer.DocumentProperties" ) ); return aServiceNames; } css::uno::Reference< css::uno::XInterface > SAL_CALL _create( |