[Libreoffice-commits] .: reportdesign/source
Caolán McNamara
caolan at kemper.freedesktop.org
Wed Jun 1 07:41:30 PDT 2011
reportdesign/source/core/api/ReportDefinition.cxx | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
New commits:
commit 9e11c23288b2bd661ada57eb065671d20aedb8ad
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Jun 1 12:14:26 2011 +0100
overly static
diff --git a/reportdesign/source/core/api/ReportDefinition.cxx b/reportdesign/source/core/api/ReportDefinition.cxx
index 8af7e5f..266e86c 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;
}
// -----------------------------------------------------------------------------
More information about the Libreoffice-commits
mailing list