From d6adb83a222c4536f6d3ba21918290c51e32e4aa Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Wed, 22 Apr 2020 16:18:10 +0200 Subject: xmloff: GetEarliestODFVersionForExport(-1) is impossible Remove defensive programming nonsense to deal with situation that has apparently never been possible in git history. Change-Id: I3788cdcec5e1b4afa27e294ed91825bb33e8e633 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92729 Reviewed-by: Michael Stahl Tested-by: Jenkins --- include/xmloff/xmlprmap.hxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include') diff --git a/include/xmloff/xmlprmap.hxx b/include/xmloff/xmlprmap.hxx index 8c31c1d940ad..5f460474b99b 100644 --- a/include/xmloff/xmlprmap.hxx +++ b/include/xmloff/xmlprmap.hxx @@ -25,7 +25,6 @@ #include #include -#include #include namespace rtl { template class Reference; } @@ -83,7 +82,7 @@ public: sal_Int16 GetEntryContextId( sal_Int32 nIndex ) const; /** returns the earliest odf version for which this property should be exported. */ - std::optional GetEarliestODFVersionForExport(sal_Int32 nIndex) const; + SvtSaveOptions::ODFSaneDefaultVersion GetEarliestODFVersionForExport(sal_Int32 nIndex) const; /** Returns the index of an entry with the given XML-name and namespace If there is no matching entry the method returns -1 */ -- cgit