summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-04-20 16:49:50 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-04-20 17:25:32 +0200
commite2baeba6e263d3fbc474ed7e5640a8cbc2936768 (patch)
treeaa2899bd991d910efc1ac7b35864feff4b6656f5 /forms
parent242b2ad3e1220c8df322615c543e161e5369e2f5 (diff)
loplugin:simplifybool
Change-Id: I6e8c06c28d710709d4a6b240e634d0216823cbe4
Diffstat (limited to 'forms')
-rw-r--r--forms/source/xforms/collection.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/forms/source/xforms/collection.hxx b/forms/source/xforms/collection.hxx
index 4e2c91f73f41..11ae4de55108 100644
--- a/forms/source/xforms/collection.hxx
+++ b/forms/source/xforms/collection.hxx
@@ -206,7 +206,7 @@ public:
throw( css::uno::RuntimeException, std::exception ) override
{
T t;
- return ( aElement >>= t ) ? hasItem( t ) : sal_False;
+ return ( aElement >>= t ) && hasItem( t );
}
virtual void SAL_CALL insert( const css::uno::Any& aElement )