summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-07-03 09:22:41 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-07-03 12:49:38 +0100
commitf9ac8942478221569740c32f35e1e0509f8fb95f (patch)
tree5c076d78329fddeff05a0791bca24da13c3d7871 /framework
parent06053398c3160391c7c2ef33a005db9662dbfc69 (diff)
clang scan-build: Called C++ object pointer is null, a good catch
Change-Id: I4fbb37560f7b20fd6854ba9bb8d017352be679b6
Diffstat (limited to 'framework')
-rw-r--r--framework/source/services/tabwindowservice.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/framework/source/services/tabwindowservice.cxx b/framework/source/services/tabwindowservice.cxx
index 9646de95ca84..f445406c0cdb 100644
--- a/framework/source/services/tabwindowservice.cxx
+++ b/framework/source/services/tabwindowservice.cxx
@@ -421,11 +421,9 @@ css::uno::Any SAL_CALL TabWindowService::impl_getPropertyValue(const OUString& /
}
// TabWindowService
-
IMPL_LINK( TabWindowService, EventListener, VclSimpleEvent*, pEvent )
{
-
- if ( !pEvent && !pEvent->ISA(VclWindowEvent))
+ if (!pEvent || !pEvent->ISA(VclWindowEvent))
return 0;
sal_uLong nEventId = pEvent->GetId();