cppCheck: Various clean-up
xfdrawstyle.cxx: correct a copy/paste typo in constructor number.cxx: remove an unused variable inftxt.hxx: redundant assignment (pWrongList is assigned twice) Change-Id: I148e23272ffa169ef16052c475e5f24a87383e5b Signed-off-by: jailletc36 <christophe.jaillet@wanadoo.fr> Reviewed-on: https://gerrit.libreoffice.org/983 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
committed by
Caolán McNamara
parent
282d0a2109
commit
dda1172659
@@ -76,7 +76,7 @@ XFDrawStyle::XFDrawStyle()
|
||||
m_fArrowStartSize = 0.3;
|
||||
m_fArrowEndSize = 0.3;
|
||||
m_bArrowStartCenter = sal_False;
|
||||
m_bArrowStartCenter = sal_False;
|
||||
m_bArrowEndCenter = sal_False;
|
||||
}
|
||||
|
||||
XFDrawStyle::~XFDrawStyle()
|
||||
|
@@ -773,7 +773,6 @@ String SwNumRule::MakeRefNumString( const SwNodeNum& rNodeNum,
|
||||
String aPrevStr = MakeNumString( pWorkingNodeNum->GetNumberVector(),
|
||||
sal_True, sal_False, MAXLEVEL,
|
||||
&aExtremities);
|
||||
int nLen = aPrevStr.Len();
|
||||
int nStrip = 0;
|
||||
sal_Unicode c;
|
||||
|
||||
@@ -789,7 +788,6 @@ String SwNumRule::MakeRefNumString( const SwNodeNum& rNodeNum,
|
||||
{
|
||||
aPrevStr.Erase( 0, nStrip );
|
||||
aExtremities.nPrefixChars -= nStrip;
|
||||
nLen -= nStrip;
|
||||
}
|
||||
|
||||
if ((bFirstIteration || bOldHadPrefix) &&
|
||||
|
@@ -404,7 +404,8 @@ protected:
|
||||
SwTxtPaintInfo() { pFrm = 0; pWrongList = 0; pGrammarCheckList = 0; pSmartTags = 0; pSpaceAdd = 0;
|
||||
pBrushItem = ((SvxBrushItem*)-1);}
|
||||
#else
|
||||
SwTxtPaintInfo() { pFrm = 0; pWrongList = 0; pGrammarCheckList = 0; pWrongList = 0; pSmartTags = 0; pSpaceAdd = 0; pBrushItem = 0;}
|
||||
SwTxtPaintInfo() { pFrm = 0; pWrongList = 0; pGrammarCheckList = 0; pSmartTags = 0; pSpaceAdd = 0;
|
||||
pBrushItem = 0;}
|
||||
#endif
|
||||
public:
|
||||
SwTxtPaintInfo( const SwTxtPaintInfo &rInf );
|
||||
|
Reference in New Issue
Block a user