summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-06-01 12:14:26 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-06-01 15:16:47 +0100
commit8f6d0574f7c2a34d8cb494f8531bcf30689901de (patch)
tree00838b26ee4463c5e77ecf61ecc79d42550d5751 /reportdesign
parent37032dc9dc8089c9a1127e61cb2ad5612306399b (diff)
overly static
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/core/api/ReportDefinition.cxx11
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;
}
// -----------------------------------------------------------------------------