diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-01 12:14:26 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-01 15:16:47 +0100 |
commit | 8f6d0574f7c2a34d8cb494f8531bcf30689901de (patch) | |
tree | 00838b26ee4463c5e77ecf61ecc79d42550d5751 /reportdesign | |
parent | 37032dc9dc8089c9a1127e61cb2ad5612306399b (diff) |
overly static
Diffstat (limited to 'reportdesign')
-rw-r--r-- | reportdesign/source/core/api/ReportDefinition.cxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/reportdesign/source/core/api/ReportDefinition.cxx b/reportdesign/source/core/api/ReportDefinition.cxx index 935250b9370b..29467fa2f6bc 100644 --- a/reportdesign/source/core/api/ReportDefinition.cxx +++ b/reportdesign/source/core/api/ReportDefinition.cxx @@ -2161,14 +2161,9 @@ void SAL_CALL OReportDefinition::setMimeType( const ::rtl::OUString& _mimetype ) // ----------------------------------------------------------------------------- uno::Sequence< ::rtl::OUString > SAL_CALL OReportDefinition::getAvailableMimeTypes( ) throw (lang::DisposedException, uno::Exception, uno::RuntimeException) { - static uno::Sequence< ::rtl::OUString > s_aList; - if ( !s_aList.hasElements() ) - { - s_aList.realloc(2); - s_aList[0] = MIMETYPE_OASIS_OPENDOCUMENT_TEXT; - s_aList[1] = MIMETYPE_OASIS_OPENDOCUMENT_SPREADSHEET; - } - + uno::Sequence< ::rtl::OUString > s_aList(2); + s_aList[0] = MIMETYPE_OASIS_OPENDOCUMENT_TEXT; + s_aList[1] = MIMETYPE_OASIS_OPENDOCUMENT_SPREADSHEET; return s_aList; } // ----------------------------------------------------------------------------- |