Kaydet (Commit) 1570957f authored tarafından Julien Nabet's avatar Julien Nabet

cppcheck: fix 2 variableScope reports in editeng

Change-Id: Ic87c5b1d8f96b7f25ce323a49455d1ac16d1bf86
Reviewed-on: https://gerrit.libreoffice.org/21533Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
üst ecef63a9
...@@ -1711,9 +1711,9 @@ namespace accessibility ...@@ -1711,9 +1711,9 @@ namespace accessibility
} }
} }
} }
bool bExtend = false;
if( nFoundFieldIndex >= 0 ) if( nFoundFieldIndex >= 0 )
{ {
bool bExtend = false;
if( Segment.SegmentEnd < reeEnd ) if( Segment.SegmentEnd < reeEnd )
{ {
Segment.SegmentEnd = reeEnd; Segment.SegmentEnd = reeEnd;
......
...@@ -120,22 +120,12 @@ void TextConvWrapper::FindConvText_impl() ...@@ -120,22 +120,12 @@ void TextConvWrapper::FindConvText_impl()
{ {
// modified version of SvxSpellWrapper::FindSpellError // modified version of SvxSpellWrapper::FindSpellError
bool bFound = false;
m_pWin->EnterWait(); m_pWin->EnterWait();
bool bConvert = true;
while ( bConvert ) while ( true )
{ {
bFound = ConvContinue_impl(); if (ConvContinue_impl() || !ConvNext_impl())
if (bFound) break;
{
bConvert = false;
}
else
{
bConvert = ConvNext_impl();
}
} }
m_pWin->LeaveWait(); m_pWin->LeaveWait();
} }
......
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