From 1115adbb5dc2dc05354f2a24a27cb37e522c92b4 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 21 Jan 2014 18:22:24 +0100 Subject: bool improvements Change-Id: I1588e6dcbc095d8c5fcde3601eea9111fbae15fb --- framework/source/helper/ocomponentenumeration.cxx | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'framework/source/helper/ocomponentenumeration.cxx') 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 -- cgit