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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user