From 45f2e81c98a5b7fe6f021923fd93d20b3c5f3815 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Tue, 21 Apr 2020 18:57:52 +0200 Subject: replace ODFDefaultVersion usage with ODFSaneDefaultVersion Compare with ODFSVER_012 mostly works the same, except for places where namespaces are defined where the ODFSVER_EXTENDED bit should be checked. Change-Id: I86469b763bc2f903632976bc9d6ec04d543d705e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92727 Tested-by: Jenkins Reviewed-by: Michael Stahl --- dbaccess/source/core/dataaccess/databasedocument.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dbaccess/source') diff --git a/dbaccess/source/core/dataaccess/databasedocument.cxx b/dbaccess/source/core/dataaccess/databasedocument.cxx index 922513a99e8d..ac21fa4c809f 100644 --- a/dbaccess/source/core/dataaccess/databasedocument.cxx +++ b/dbaccess/source/core/dataaccess/databasedocument.cxx @@ -1658,11 +1658,11 @@ void ODatabaseDocument::impl_writeStorage_throw( const Reference< XStorage >& _r xProp->setPropertyValue( INFO_MEDIATYPE, makeAny( OUString(MIMETYPE_OASIS_OPENDOCUMENT_DATABASE_ASCII) ) ); OUString aVersion; - SvtSaveOptions::ODFDefaultVersion const nDefVersion = - aSaveOpt.GetODFDefaultVersion(); + SvtSaveOptions::ODFSaneDefaultVersion const nDefVersion = + aSaveOpt.GetODFSaneDefaultVersion(); // older versions can not have this property set, // it exists only starting from ODF1.2 - if (nDefVersion >= SvtSaveOptions::ODFVER_012) + if (nDefVersion >= SvtSaveOptions::ODFSVER_012) aVersion = ODFVER_012_TEXT; if (!aVersion.isEmpty()) -- cgit