diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-06-21 09:42:40 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-06-21 09:42:51 +0200 |
commit | a2aa0e6087254165613d323a5cfb083c79e7bbd9 (patch) | |
tree | 0e7a19e0d88bc68f75de7fda0a7e4196561f1519 /xmloff | |
parent | Revert "bnc#882631: keep line visible if proportional line spacing is < 100%." (diff) | |
download | core-a2aa0e6087254165613d323a5cfb083c79e7bbd9.tar.gz core-a2aa0e6087254165613d323a5cfb083c79e7bbd9.zip |
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.cxx | 2 |
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 |