diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2020-04-22 16:18:10 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@cib.de> | 2020-05-08 18:38:01 +0200 |
commit | e43ad1a8ae20cbd00c5c3346e1810196af6669a6 (patch) | |
tree | 6d4a7134edec7f4f302cbbbf546443aaabcf4d06 /include/xmloff | |
parent | 3a0a88083dc992015a64216bac94822af8eef6c1 (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/xmloff')
-rw-r--r-- | include/xmloff/xmlprmap.hxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/xmloff/xmlprmap.hxx b/include/xmloff/xmlprmap.hxx index 9d85bbdbf632..2b53f2e83d53 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 */ |