summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2020-04-22 16:18:10 +0200
committerJan Holesovsky <kendy@collabora.com>2021-01-07 16:32:51 +0100
commitd6adb83a222c4536f6d3ba21918290c51e32e4aa (patch)
tree8eb50442a12b687a47fca891ae7daa3b0e70d2f3 /include
parentecd472e4a5403df8e6d55aa2fec536af98042686 (diff)
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 <michael.stahl@cib.de> Tested-by: Jenkins
Diffstat (limited to 'include')
-rw-r--r--include/xmloff/xmlprmap.hxx3
1 files changed, 1 insertions, 2 deletions
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 <rtl/ustring.hxx>
#include <salhelper/simplereferenceobject.hxx>
-#include <optional>
#include <memory>
namespace rtl { template <class reference_type> 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<SvtSaveOptions::ODFSaneDefaultVersion> 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 */