diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-10 11:10:07 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-10 17:11:43 +0100 |
commit | 2c5b0bb34536481a576db28528889d3513dc2fea (patch) | |
tree | ebb0a651305afcf452353bf8319a1bebe03978ef /toolkit | |
parent | 0743b5ec9af31b972ebd8a3070cc4c6955661295 (diff) |
Avoid code mixing bool with other integral types
Change-Id: Idf75d03a302df977a41f688eb48e40de31ff2816
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/controls/stdtabcontroller.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toolkit/source/controls/stdtabcontroller.cxx b/toolkit/source/controls/stdtabcontroller.cxx index 2ffdea5ef272..e5c9dfb72020 100644 --- a/toolkit/source/controls/stdtabcontroller.cxx +++ b/toolkit/source/controls/stdtabcontroller.cxx @@ -137,7 +137,7 @@ void StdTabController::ImplActivateControl( sal_Bool bFirst ) const const Reference< XControl > * pControls = aCtrls.getConstArray(); sal_uInt32 nCount = aCtrls.getLength(); - for ( sal_uInt32 n = bFirst ? 0 : nCount; bFirst ? ( n < nCount ) : n; ) + for ( sal_uInt32 n = bFirst ? 0 : nCount; bFirst ? n < nCount : n != 0; ) { sal_uInt32 nCtrl = bFirst ? n++ : --n; DBG_ASSERT( pControls[nCtrl].is(), "Control nicht im Container!" ); |