summaryrefslogtreecommitdiff
path: root/vbahelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-07-16 13:58:05 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-07-16 14:00:24 +0200
commit8f12dcbf606e0ec73fe87df5c696682e792a7605 (patch)
tree91cbafa134900e739a8555a53cee3785e86608cb /vbahelper
parenteac10bd2db973365cbbfd5379a64c5e02e7527cc (diff)
loplugin:simplifybool
Change-Id: I06135270e460cd554cca9153292dcc1984d50d43
Diffstat (limited to 'vbahelper')
-rw-r--r--vbahelper/source/msforms/vbacheckbox.cxx2
-rw-r--r--vbahelper/source/msforms/vbaradiobutton.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/vbahelper/source/msforms/vbacheckbox.cxx b/vbahelper/source/msforms/vbacheckbox.cxx
index 75c3d21efe7d..bd00682ecd85 100644
--- a/vbahelper/source/msforms/vbacheckbox.cxx
+++ b/vbahelper/source/msforms/vbacheckbox.cxx
@@ -53,7 +53,7 @@ ScVbaCheckbox::getValue() throw (css::uno::RuntimeException, std::exception)
// return uno::makeAny( nValue );
// I must be missing something MSO says value should be -1 if selected, 0 if not
// selected
- return uno::makeAny( ( nValue == -1 ) ? sal_True : sal_False );
+ return uno::makeAny( nValue == -1 );
}
void SAL_CALL
diff --git a/vbahelper/source/msforms/vbaradiobutton.cxx b/vbahelper/source/msforms/vbaradiobutton.cxx
index 612371c08387..4f62e84323e6 100644
--- a/vbahelper/source/msforms/vbaradiobutton.cxx
+++ b/vbahelper/source/msforms/vbaradiobutton.cxx
@@ -52,7 +52,7 @@ ScVbaRadioButton::getValue() throw (css::uno::RuntimeException, std::exception)
// return uno::makeAny( nValue );
// I must be missing something MSO says value should be -1 if selected, 0 if not
// selected
- return uno::makeAny( ( nValue == -1 ) ? sal_True : sal_False );
+ return uno::makeAny( nValue == -1 );
}