Kaydet (Commit) c94f12a3 authored tarafından Matteo Casalin's avatar Matteo Casalin

nOrigTxtStt is never read

Change-Id: I9ace298d66aaaa46cecdeacfc633144715535e50
üst d0feb9d8
...@@ -1391,7 +1391,6 @@ void SwAutoFormat::BuildEnum( sal_uInt16 nLvl, sal_uInt16 nDigitLevel ) ...@@ -1391,7 +1391,6 @@ void SwAutoFormat::BuildEnum( sal_uInt16 nLvl, sal_uInt16 nDigitLevel )
// replace bullet character with defined one // replace bullet character with defined one
const OUString& rStr = m_pCurTxtNd->GetTxt(); const OUString& rStr = m_pCurTxtNd->GetTxt();
sal_Int32 nTxtStt = 0; sal_Int32 nTxtStt = 0;
const sal_Int32 nOrigTxtStt = 0;
const sal_Unicode* pFndBulletChr; const sal_Unicode* pFndBulletChr;
if( m_aFlags.bChgEnumNum && if( m_aFlags.bChgEnumNum &&
2 < rStr.getLength() && 2 < rStr.getLength() &&
...@@ -1587,7 +1586,7 @@ void SwAutoFormat::BuildEnum( sal_uInt16 nLvl, sal_uInt16 nDigitLevel ) ...@@ -1587,7 +1586,7 @@ void SwAutoFormat::BuildEnum( sal_uInt16 nLvl, sal_uInt16 nDigitLevel )
} }
else else
m_aDelPam.GetPoint()->nContent.Assign( m_pCurTxtNd, m_aDelPam.GetPoint()->nContent.Assign( m_pCurTxtNd,
bChgEnum ? (nTxtStt - nOrigTxtStt) : 0 ); bChgEnum ? nTxtStt : 0 );
m_aDelPam.SetMark(); m_aDelPam.SetMark();
if( bChgBullet ) if( bChgBullet )
...@@ -1596,7 +1595,7 @@ void SwAutoFormat::BuildEnum( sal_uInt16 nLvl, sal_uInt16 nDigitLevel ) ...@@ -1596,7 +1595,7 @@ void SwAutoFormat::BuildEnum( sal_uInt16 nLvl, sal_uInt16 nDigitLevel )
while( nTxtStt < rStr.getLength() && IsSpace( rStr[ nTxtStt ] )) while( nTxtStt < rStr.getLength() && IsSpace( rStr[ nTxtStt ] ))
nTxtStt++; nTxtStt++;
m_aDelPam.GetPoint()->nContent = nTxtStt - nOrigTxtStt; m_aDelPam.GetPoint()->nContent = nTxtStt;
DeleteSel( m_aDelPam ); DeleteSel( m_aDelPam );
if( !m_aFlags.bSetNumRule ) if( !m_aFlags.bSetNumRule )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment