[Libreoffice-commits] core.git: xmloff/source
Matúš Kukan
matus.kukan at collabora.com
Sat Jun 21 00:43:37 PDT 2014
xmloff/source/style/xmlexppr.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit a2aa0e6087254165613d323a5cfb083c79e7bbd9
Author: Matúš Kukan <matus.kukan at collabora.com>
Date: Sat Jun 21 09:42:40 2014 +0200
Create SvtSaveOptions() outside of for loop.
Helps to save few cycles.
Change-Id: Iea908bd84fa1201f05ec698f8de51ea78d841eb6
diff --git a/xmloff/source/style/xmlexppr.cxx b/xmloff/source/style/xmlexppr.cxx
index 8000957..224729c 100644
--- a/xmloff/source/style/xmlexppr.cxx
+++ b/xmloff/source/style/xmlexppr.cxx
@@ -590,6 +590,7 @@ vector< XMLPropertyState > SvXMLExportPropertyMapper::_Filter(
bool bDelInfo = false;
if( !pFilterInfo )
{
+ const SvtSaveOptions::ODFDefaultVersion nCurrentVersion( SvtSaveOptions().GetODFDefaultVersion() );
pFilterInfo = new FilterPropertiesInfo_Impl;
for( sal_Int32 i=0; i < nProps; i++ )
{
@@ -601,7 +602,6 @@ vector< XMLPropertyState > SvXMLExportPropertyMapper::_Filter(
( (0 != (nFlags & MID_FLAG_MUST_EXIST)) ||
xInfo->hasPropertyByName( rAPIName ) ) )
{
- const SvtSaveOptions::ODFDefaultVersion nCurrentVersion( SvtSaveOptions().GetODFDefaultVersion() );
const SvtSaveOptions::ODFDefaultVersion nEarliestODFVersionForExport(
mpImpl->mxPropMapper->GetEarliestODFVersionForExport(i));
if( nCurrentVersion >= nEarliestODFVersionForExport
More information about the Libreoffice-commits
mailing list