summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@collabora.com>2014-06-21 09:42:40 +0200
committerMatúš Kukan <matus.kukan@collabora.com>2014-06-21 09:42:51 +0200
commita2aa0e6087254165613d323a5cfb083c79e7bbd9 (patch)
tree0e7a19e0d88bc68f75de7fda0a7e4196561f1519 /xmloff
parentfc577e4f414b6fe838dff0163bceeea012c92de9 (diff)
Create SvtSaveOptions() outside of for loop.
Helps to save few cycles. Change-Id: Iea908bd84fa1201f05ec698f8de51ea78d841eb6
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/style/xmlexppr.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/style/xmlexppr.cxx b/xmloff/source/style/xmlexppr.cxx
index 8000957a4247..224729cedc72 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