cid#1485154 try moving initialization into member init list
see if it has an effect on bogus "Uninitialized scalar variable" Change-Id: I68d6a466f7fc9aa3412d50223dc53d6b60b721c5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116527 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
@@ -914,23 +914,22 @@ const SfxItemSet& SvxRTFParser::GetRTFDefaults()
|
||||
|
||||
|
||||
SvxRTFStyleType::SvxRTFStyleType( SfxItemPool& rPool, const sal_uInt16* pWhichRange )
|
||||
: aAttrSet( rPool, pWhichRange )
|
||||
: aAttrSet(rPool, pWhichRange)
|
||||
, nBasedOn(0)
|
||||
, nOutlineNo(sal_uInt8(-1)) // not set
|
||||
{
|
||||
nOutlineNo = sal_uInt8(-1); // not set
|
||||
nBasedOn = 0;
|
||||
}
|
||||
|
||||
|
||||
SvxRTFItemStackType::SvxRTFItemStackType(
|
||||
SfxItemPool& rPool, const sal_uInt16* pWhichRange,
|
||||
const EditPosition& rPos )
|
||||
: aAttrSet( rPool, pWhichRange )
|
||||
, nStyleNo( 0 )
|
||||
, mxStartNodeIdx(rPos.MakeNodeIdx())
|
||||
, mxEndNodeIdx(mxStartNodeIdx)
|
||||
, nSttCnt(rPos.GetCntIdx())
|
||||
, nEndCnt(nSttCnt)
|
||||
, nStyleNo(0)
|
||||
{
|
||||
mxStartNodeIdx = rPos.MakeNodeIdx();
|
||||
nSttCnt = rPos.GetCntIdx();
|
||||
mxEndNodeIdx = mxStartNodeIdx;
|
||||
nEndCnt = nSttCnt;
|
||||
}
|
||||
|
||||
SvxRTFItemStackType::SvxRTFItemStackType(
|
||||
@@ -938,13 +937,12 @@ SvxRTFItemStackType::SvxRTFItemStackType(
|
||||
const EditPosition& rPos,
|
||||
bool const bCopyAttr )
|
||||
: aAttrSet( *rCpy.aAttrSet.GetPool(), rCpy.aAttrSet.GetRanges() )
|
||||
, nStyleNo( rCpy.nStyleNo )
|
||||
, mxStartNodeIdx(rPos.MakeNodeIdx())
|
||||
, mxEndNodeIdx(mxStartNodeIdx)
|
||||
, nSttCnt(rPos.GetCntIdx())
|
||||
, nEndCnt(nSttCnt)
|
||||
, nStyleNo(rCpy.nStyleNo)
|
||||
{
|
||||
mxStartNodeIdx = rPos.MakeNodeIdx();
|
||||
nSttCnt = rPos.GetCntIdx();
|
||||
mxEndNodeIdx = mxStartNodeIdx;
|
||||
nEndCnt = nSttCnt;
|
||||
|
||||
aAttrSet.SetParent( &rCpy.aAttrSet );
|
||||
if( bCopyAttr )
|
||||
aAttrSet.Put( rCpy.aAttrSet );
|
||||
@@ -1107,7 +1105,6 @@ void SvxRTFItemStackType::SetRTFDefaults( const SfxItemSet& rDefaults )
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
RTFPlainAttrMapIds::RTFPlainAttrMapIds( const SfxItemPool& rPool )
|
||||
{
|
||||
nCaseMap = rPool.GetTrueWhich( SID_ATTR_CHAR_CASEMAP, false );
|
||||
|
||||
Reference in New Issue
Block a user