From 684aff90b0657cc46f1f453b8de4b3bdcb2f543e Mon Sep 17 00:00:00 2001 From: Matteo Casalin Date: Sun, 21 Apr 2013 17:48:41 +0200 Subject: Slightly simplify loop Change-Id: If44e86ceecd4a407d3b4e294a03a84ad010f95e1 Reviewed-on: https://gerrit.libreoffice.org/3539 Reviewed-by: Fridrich Strba Tested-by: Fridrich Strba --- editeng/source/misc/hangulhanja.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'editeng') 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 ) -- cgit