diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-07-16 13:57:13 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-07-16 14:00:22 +0200 |
commit | 93f0c1fdd8bd618b5f624d33f4ba0b678b9e7f7d (patch) | |
tree | e0e3981860462ca7bc6463257a382de038f742be /toolkit/source/controls/unocontrols.cxx | |
parent | 7a044db51d35748f17b05f6d80ef90ad9000ad7a (diff) |
loplugin:simplifybool
Change-Id: I9875ceec4276382d4bf96bc7e150d594df646602
Diffstat (limited to 'toolkit/source/controls/unocontrols.cxx')
-rw-r--r-- | toolkit/source/controls/unocontrols.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toolkit/source/controls/unocontrols.cxx b/toolkit/source/controls/unocontrols.cxx index 1101e57edfa8..8e2d3c982178 100644 --- a/toolkit/source/controls/unocontrols.cxx +++ b/toolkit/source/controls/unocontrols.cxx @@ -1311,7 +1311,7 @@ sal_Bool UnoRadioButtonControl::getState() throw(uno::RuntimeException, std::exc sal_Int16 nState = 0; uno::Any aVal = ImplGetPropertyValue( GetPropertyName( BASEPROPERTY_STATE ) ); aVal >>= nState; - return nState ? sal_True : sal_False; + return nState != 0; } void UnoRadioButtonControl::itemStateChanged( const awt::ItemEvent& rEvent ) throw(uno::RuntimeException, std::exception) |