[Libreoffice-commits] .: sw/source
Caolán McNamara
caolan at kemper.freedesktop.org
Tue Jan 25 13:29:38 PST 2011
sw/source/ui/misc/num.cxx | 10 ----------
1 file changed, 10 deletions(-)
New commits:
commit c545e900d1eb0094a81b1f79693bb1ce51923454
Author: Andy Holder <andy.m.holder at gmail.com>
Date: Mon Jan 24 00:00:15 2011 +0000
cppcheck: unused variables
diff --git a/sw/source/ui/misc/num.cxx b/sw/source/ui/misc/num.cxx
index 25cf448..68212bf 100644
--- a/sw/source/ui/misc/num.cxx
+++ b/sw/source/ui/misc/num.cxx
@@ -205,10 +205,8 @@ void SwNumPositionTabPage::InitControls()
bool bSameIndentAt = bLabelAlignmentPosAndSpaceModeActive;
const SwNumFmt* aNumFmtArr[MAXLEVEL];
- const SwFmtVertOrient* pFirstOrient = 0;
USHORT nMask = 1;
USHORT nLvl = USHRT_MAX;
- long nFirstBorderText = 0;
long nFirstBorderTextRelative = -1;
for(USHORT i = 0; i < MAXLEVEL; i++)
{
@@ -218,14 +216,6 @@ void SwNumPositionTabPage::InitControls()
if(USHRT_MAX == nLvl)
{
nLvl = i;
- if ( !bLabelAlignmentPosAndSpaceModeActive )
- {
- pFirstOrient = aNumFmtArr[nLvl]->GetGraphicOrientation();
- nFirstBorderText = nLvl > 0 ?
- aNumFmtArr[nLvl]->GetAbsLSpace() + aNumFmtArr[nLvl]->GetFirstLineOffset() -
- aNumFmtArr[nLvl - 1]->GetAbsLSpace() + aNumFmtArr[nLvl - 1]->GetFirstLineOffset():
- aNumFmtArr[nLvl]->GetAbsLSpace() + aNumFmtArr[nLvl]->GetFirstLineOffset();
- }
}
if( i > nLvl)
More information about the Libreoffice-commits
mailing list