diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2013-04-21 17:48:41 +0200 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-04-22 07:20:26 +0000 |
commit | 684aff90b0657cc46f1f453b8de4b3bdcb2f543e (patch) | |
tree | b7db17925581971162ddeb2ebf742ea85e739c15 /editeng | |
parent | d1f99bdf2abf591994b6efb2e73dcd31fdee8384 (diff) |
Slightly simplify loop
Change-Id: If44e86ceecd4a407d3b4e294a03a84ad010f95e1
Reviewed-on: https://gerrit.libreoffice.org/3539
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/misc/hangulhanja.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/editeng/source/misc/hangulhanja.cxx b/editeng/source/misc/hangulhanja.cxx index 4f7189ac9b5b..7d2c01e30167 100644 --- a/editeng/source/misc/hangulhanja.cxx +++ b/editeng/source/misc/hangulhanja.cxx @@ -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 ) |