summaryrefslogtreecommitdiff
path: root/scripting/source/vbaevents
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-07-16 13:53:48 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-07-16 14:00:19 +0200
commit35279a7e2d9bb18373c69c6922c240447be92104 (patch)
tree8b96ed2e179df426ab8a273d8137dfb886b7d57c /scripting/source/vbaevents
parente82bc17d87762f99594ab046a02d1f358e77e30b (diff)
loplugin:simplifybool
Change-Id: Ic179c3012ad99a97b11914bf7aefca58829621e0
Diffstat (limited to 'scripting/source/vbaevents')
-rw-r--r--scripting/source/vbaevents/eventhelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripting/source/vbaevents/eventhelper.cxx b/scripting/source/vbaevents/eventhelper.cxx
index a34c2735e09f..976f1534e18d 100644
--- a/scripting/source/vbaevents/eventhelper.cxx
+++ b/scripting/source/vbaevents/eventhelper.cxx
@@ -491,7 +491,7 @@ public:
virtual Type SAL_CALL getElementType( ) throw (RuntimeException, std::exception) SAL_OVERRIDE
{ return cppu::UnoType<OUString>::get(); }
virtual sal_Bool SAL_CALL hasElements( ) throw (RuntimeException, std::exception) SAL_OVERRIDE
- { return ( ( m_hEvents.empty() ? sal_False : sal_True ) ); }
+ { return !m_hEvents.empty(); }
private:
typedef std::unordered_map< OUString, Any, OUStringHash,