summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/ListBox.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx
index 9128b1e33238..838be478c3ed 100644
--- a/forms/source/component/ListBox.cxx
+++ b/forms/source/component/ListBox.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ListBox.cxx,v $
*
- * $Revision: 1.20 $
+ * $Revision: 1.21 $
*
- * last change: $Author: fs $ $Date: 2001-08-30 14:08:34 $
+ * last change: $Author: fs $ $Date: 2001-09-28 18:15:33 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -238,11 +238,11 @@ StringSequence SAL_CALL OListBoxModel::getSupportedServiceNames() throw(RuntimeE
Any SAL_CALL OListBoxModel::queryAggregation(const Type& _rType) throw (RuntimeException)
{
Any aReturn = OBoundControlModel::queryAggregation( _rType );
- return aReturn.hasValue()
- ? aReturn
- : aReturn = ( OListBoxModel_BASE::queryInterface( _rType ) ).hasValue()
- ? aReturn
- : OErrorBroadcaster::queryInterface( _rType );
+ if ( !aReturn.hasValue() )
+ aReturn = OListBoxModel_BASE::queryInterface( _rType );
+ if ( !aReturn.hasValue() )
+ aReturn = OErrorBroadcaster::queryInterface( _rType );
+ return aReturn;
}
// OComponentHelper