From 349919440b1454eda2de783a0c3e6bd3bae4542b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 11 May 2019 09:00:32 +0200 Subject: tdf#107592 Impress PPS save to ODP slow Takes the time from 20s to 5s on my PC. Change-Id: Iea7a94ee9fbe068b69a770fd9201e73646be59b9 Reviewed-on: https://gerrit.libreoffice.org/72140 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/comphelper/anycompare.hxx | 4 ++++ include/xmloff/xmlexppr.hxx | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/comphelper/anycompare.hxx b/include/comphelper/anycompare.hxx index dd92d2734ca2..8b5a941a781c 100644 --- a/include/comphelper/anycompare.hxx +++ b/include/comphelper/anycompare.hxx @@ -205,6 +205,10 @@ namespace comphelper css::uno::Reference< css::i18n::XCollator > const & i_collator ); + /** + Compare two Anys. + */ + bool COMPHELPER_DLLPUBLIC anyLess( css::uno::Any const & lhs, css::uno::Any const & rhs); } // namespace comphelper diff --git a/include/xmloff/xmlexppr.hxx b/include/xmloff/xmlexppr.hxx index 28be918474ee..84d2d60c2fb5 100644 --- a/include/xmloff/xmlexppr.hxx +++ b/include/xmloff/xmlexppr.hxx @@ -124,10 +124,14 @@ public: std::vector FilterDefaults( const css::uno::Reference& rPropSet ) const; - /** Compare to arrays of XMLPropertyState */ - bool Equals( const ::std::vector< XMLPropertyState >& aProperties1, + /** Provides a partial ordering over two arrays of XMLPropertyState, + Partial because implementing a full order requires quite a lot of code. */ + bool LessPartial( const ::std::vector< XMLPropertyState >& aProperties1, const ::std::vector< XMLPropertyState >& aProperties2 ) const; + /** Compare two arrays of XMLPropertyState */ + bool Equals( const ::std::vector< XMLPropertyState >& aProperties1, + const ::std::vector< XMLPropertyState >& aProperties2 ) const; void exportXML( SvXMLExport& rExport, const ::std::vector< XMLPropertyState >& rProperties, -- cgit