nOrigTxtStt is never read

Change-Id: I9ace298d66aaaa46cecdeacfc633144715535e50
This commit is contained in:
Matteo Casalin
2014-03-02 15:44:07 +01:00
parent d0feb9d89d
commit c94f12a389

View File

@ -1391,7 +1391,6 @@ void SwAutoFormat::BuildEnum( sal_uInt16 nLvl, sal_uInt16 nDigitLevel )
// replace bullet character with defined one
const OUString& rStr = m_pCurTxtNd->GetTxt();
sal_Int32 nTxtStt = 0;
const sal_Int32 nOrigTxtStt = 0;
const sal_Unicode* pFndBulletChr;
if( m_aFlags.bChgEnumNum &&
2 < rStr.getLength() &&
@ -1587,7 +1586,7 @@ void SwAutoFormat::BuildEnum( sal_uInt16 nLvl, sal_uInt16 nDigitLevel )
}
else
m_aDelPam.GetPoint()->nContent.Assign( m_pCurTxtNd,
bChgEnum ? (nTxtStt - nOrigTxtStt) : 0 );
bChgEnum ? nTxtStt : 0 );
m_aDelPam.SetMark();
if( bChgBullet )
@ -1596,7 +1595,7 @@ void SwAutoFormat::BuildEnum( sal_uInt16 nLvl, sal_uInt16 nDigitLevel )
while( nTxtStt < rStr.getLength() && IsSpace( rStr[ nTxtStt ] ))
nTxtStt++;
m_aDelPam.GetPoint()->nContent = nTxtStt - nOrigTxtStt;
m_aDelPam.GetPoint()->nContent = nTxtStt;
DeleteSel( m_aDelPam );
if( !m_aFlags.bSetNumRule )