Kaydet (Commit) 951b1280 authored tarafından Caolán McNamara's avatar Caolán McNamara

cppcheck: unreadVariable

Change-Id: I7af3807a4390e3b2f1bd9373feb937b6ff3dea7a
üst 5d00f1b0
...@@ -3537,7 +3537,6 @@ EditSelection ImpEditEngine::InsertText( uno::Reference< datatransfer::XTransfer ...@@ -3537,7 +3537,6 @@ EditSelection ImpEditEngine::InsertText( uno::Reference< datatransfer::XTransfer
OUString aText; OUString aText;
aData >>= aText; aData >>= aText;
aNewSelection = ImpInsertText( rPaM, aText ); aNewSelection = ImpInsertText( rPaM, aText );
bDone = true;
} }
catch( ... ) catch( ... )
{ {
......
...@@ -515,7 +515,6 @@ void SwTxtPainter::CheckSpecialUnderline( const SwLinePortion* pPor, ...@@ -515,7 +515,6 @@ void SwTxtPainter::CheckSpecialUnderline( const SwLinePortion* pPor,
} }
const sal_Int32 nIndx = GetInfo().GetIdx(); const sal_Int32 nIndx = GetInfo().GetIdx();
long nUnderStart = 0;
long nUnderEnd = 0; long nUnderEnd = 0;
const size_t nCnt = aUnderMulti.GetRangeCount(); const size_t nCnt = aUnderMulti.GetRangeCount();
...@@ -527,17 +526,12 @@ void SwTxtPainter::CheckSpecialUnderline( const SwLinePortion* pPor, ...@@ -527,17 +526,12 @@ void SwTxtPainter::CheckSpecialUnderline( const SwLinePortion* pPor,
nUnderEnd = rRange.Max(); nUnderEnd = rRange.Max();
else if( nIndx >= rRange.Min() ) else if( nIndx >= rRange.Min() )
{ {
nUnderStart = rRange.Min();
nUnderEnd = rRange.Max(); nUnderEnd = rRange.Max();
} }
else else
break; break;
} }
// restrict start and end to current line
if ( GetStart() > nUnderStart )
nUnderStart = GetStart();
if ( GetEnd() && GetEnd() <= nUnderEnd ) if ( GetEnd() && GetEnd() <= nUnderEnd )
nUnderEnd = GetEnd() - 1; nUnderEnd = GetEnd() - 1;
......
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