drop coverity std::optional workaround

Change-Id: Ie1b61fc4a8a8219e9ba3d4c8f77c27b8c725407e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180490
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
Caolán McNamara
2025-01-20 09:29:10 +01:00
parent 7e62220a58
commit fcd60a0213
-6
View File
@@ -985,10 +985,7 @@ SvxRTFItemStackType::SvxRTFItemStackType(
const EditPosition& rPos )
: aAttrSet( rPool, pWhichRange )
, mxStartNodeIdx(rPos.MakeNodeIdx())
#if !defined(__COVERITY__) || __COVERITY_MAJOR__ > 2023
// coverity 2020 has difficulty wrt std::optional leading to bogus 'Uninitialized scalar variable'
, mxEndNodeIdx(mxStartNodeIdx)
#endif
, nSttCnt(rPos.GetCntIdx())
, nEndCnt(nSttCnt)
, nStyleNo(0)
@@ -1001,10 +998,7 @@ SvxRTFItemStackType::SvxRTFItemStackType(
bool const bCopyAttr )
: aAttrSet( *rCpy.aAttrSet.GetPool(), rCpy.aAttrSet.GetRanges() )
, mxStartNodeIdx(rPos.MakeNodeIdx())
#if !defined(__COVERITY__) || __COVERITY_MAJOR__ > 2023
// coverity 2020 has difficulty wrt std::optional leading to bogus 'Uninitialized scalar variable'
, mxEndNodeIdx(mxStartNodeIdx)
#endif
, nSttCnt(rPos.GetCntIdx())
, nEndCnt(nSttCnt)
, nStyleNo(rCpy.nStyleNo)