summaryrefslogtreecommitdiff
path: root/framework/source/helper/ocomponentenumeration.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-21 18:22:24 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-21 18:24:07 +0100
commit1115adbb5dc2dc05354f2a24a27cb37e522c92b4 (patch)
tree54e7313f8744c629bc9379739d48d36844d168ff /framework/source/helper/ocomponentenumeration.cxx
parentce6b20442a8f848848e7bffb42346cc9925ad4c8 (diff)
bool improvements
Change-Id: I1588e6dcbc095d8c5fcde3601eea9111fbae15fb
Diffstat (limited to 'framework/source/helper/ocomponentenumeration.cxx')
-rw-r--r--framework/source/helper/ocomponentenumeration.cxx13
1 files changed, 1 insertions, 12 deletions
diff --git a/framework/source/helper/ocomponentenumeration.cxx b/framework/source/helper/ocomponentenumeration.cxx
index 2a3de3bccba5..1ef375529451 100644
--- a/framework/source/helper/ocomponentenumeration.cxx
+++ b/framework/source/helper/ocomponentenumeration.cxx
@@ -174,18 +174,7 @@ sal_Bool OComponentEnumeration::impldbg_checkParameter_OComponentEnumerationCtor
//*****************************************************************************************************************
sal_Bool OComponentEnumeration::impldbg_checkParameter_disposing( const EventObject& aEvent )
{
- // Set default return value.
- sal_Bool bOK = sal_True;
- // Check parameter.
- if (
- ( &aEvent == NULL ) ||
- ( aEvent.Source.is() == sal_False )
- )
- {
- bOK = sal_False ;
- }
- // Return result of check.
- return bOK ;
+ return aEvent.Source.is();
}
} // namespace framework