Kaydet (Commit) 684aff90 authored tarafından Matteo Casalin's avatar Matteo Casalin Kaydeden (comit) Fridrich Strba

Slightly simplify loop

Change-Id: If44e86ceecd4a407d3b4e294a03a84ad010f95e1
Reviewed-on: https://gerrit.libreoffice.org/3539Reviewed-by: 's avatarFridrich Strba <fridrich@documentfoundation.org>
Tested-by: 's avatarFridrich Strba <fridrich@documentfoundation.org>
üst d1f99bdf
......@@ -534,9 +534,7 @@ namespace editeng
bool HangulHanjaConversion_Impl::ContinueConversion( bool _bRepeatCurrentUnit )
{
bool bNeedUserInteraction = false; // when we leave here, do we need user interaction?
while ( !bNeedUserInteraction && implNextConvertible( _bRepeatCurrentUnit ) )
while ( implNextConvertible( _bRepeatCurrentUnit ) )
{
OUString sCurrentUnit( GetCurrentUnit() );
......@@ -576,11 +574,11 @@ namespace editeng
// do not look for the next convertible: We have to wait for the user to interactivly
// decide what happens with the current convertible
bNeedUserInteraction = true;
return false;
}
}
return !bNeedUserInteraction;
return true;
}
bool HangulHanjaConversion_Impl::implGetConversionDirectionForCurrentPortion( HHC::ConversionDirection& rDirection )
......
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