summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-10-13 21:24:59 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-10-14 13:07:37 +0200
commit3ef807504072fcdf09653f88927683ff4f90e503 (patch)
treee58c036c91d12750abbe03af9a9af81b4923e367 /editeng
parent85a2b2222da0e535446ce46bfcc60d13dad714f1 (diff)
version COVERITY conditionals
so there's a recheck on each major if they are still needed Change-Id: I351f731fe4eaec0ebf735147a9a168cccba3bca5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174883 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/rtf/svxrtf.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/editeng/source/rtf/svxrtf.cxx b/editeng/source/rtf/svxrtf.cxx
index c14574877150..bcb87f6ed6bc 100644
--- a/editeng/source/rtf/svxrtf.cxx
+++ b/editeng/source/rtf/svxrtf.cxx
@@ -985,7 +985,7 @@ SvxRTFItemStackType::SvxRTFItemStackType(
const EditPosition& rPos )
: aAttrSet( rPool, pWhichRange )
, mxStartNodeIdx(rPos.MakeNodeIdx())
-#if !defined(__COVERITY__)
+#if !defined(__COVERITY__) || __COVERITY_MAJOR__ > 2023
// coverity 2020 has difficulty wrt std::optional leading to bogus 'Uninitialized scalar variable'
, mxEndNodeIdx(mxStartNodeIdx)
#endif
@@ -1001,7 +1001,7 @@ SvxRTFItemStackType::SvxRTFItemStackType(
bool const bCopyAttr )
: aAttrSet( *rCpy.aAttrSet.GetPool(), rCpy.aAttrSet.GetRanges() )
, mxStartNodeIdx(rPos.MakeNodeIdx())
-#if !defined(__COVERITY__)
+#if !defined(__COVERITY__) || __COVERITY_MAJOR__ > 2023
// coverity 2020 has difficulty wrt std::optional leading to bogus 'Uninitialized scalar variable'
, mxEndNodeIdx(mxStartNodeIdx)
#endif