diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-06-03 21:13:03 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-06-05 21:18:09 +0200 |
commit | 420a8de648e77f7b065bac0bd8ef0d654fb0075e (patch) | |
tree | 85a13ff8c4f9e72e0d292aab27d7ea49d757ba5a /forms/source | |
parent | aed9c37e5a7d6be2fe698053b94ffccef8e6b8a5 (diff) |
Improved loplugin:cstylecast to reference types: forms
Change-Id: Ide68579e892594875a5c38b3f62872d4eeae06cf
Diffstat (limited to 'forms/source')
-rw-r--r-- | forms/source/component/ComboBox.cxx | 4 | ||||
-rw-r--r-- | forms/source/component/ListBox.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/forms/source/component/ComboBox.cxx b/forms/source/component/ComboBox.cxx index cc64d8bba73a..f461a25c7bd7 100644 --- a/forms/source/component/ComboBox.cxx +++ b/forms/source/component/ComboBox.cxx @@ -121,7 +121,7 @@ Any SAL_CALL OComboBoxModel::queryAggregation(const Type& _rType) OComboBoxModel::OComboBoxModel(const Reference<XComponentContext>& _rxFactory) :OBoundControlModel( _rxFactory, VCL_CONTROLMODEL_COMBOBOX, FRM_SUN_CONTROL_COMBOBOX, true, true, true ) // use the old control name for compatibility reasons - ,OEntryListHelper( (OControlModel&)*this ) + ,OEntryListHelper( static_cast<OControlModel&>(*this) ) ,OErrorBroadcaster( OComponentHelper::rBHelper ) ,m_aListRowSet() ,m_eListSourceType(ListSourceType_TABLE) @@ -134,7 +134,7 @@ OComboBoxModel::OComboBoxModel(const Reference<XComponentContext>& _rxFactory) OComboBoxModel::OComboBoxModel( const OComboBoxModel* _pOriginal, const Reference<XComponentContext>& _rxFactory ) :OBoundControlModel( _pOriginal, _rxFactory ) - ,OEntryListHelper( *_pOriginal, (OControlModel&)*this ) + ,OEntryListHelper( *_pOriginal, static_cast<OControlModel&>(*this) ) ,OErrorBroadcaster( OComponentHelper::rBHelper ) ,m_aListRowSet() ,m_aListSource( _pOriginal->m_aListSource ) diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx index a57322ed5ced..ee8a4beb90d5 100644 --- a/forms/source/component/ListBox.cxx +++ b/forms/source/component/ListBox.cxx @@ -154,7 +154,7 @@ namespace frm OListBoxModel::OListBoxModel(const Reference<XComponentContext>& _rxFactory) :OBoundControlModel( _rxFactory, VCL_CONTROLMODEL_LISTBOX, FRM_SUN_CONTROL_LISTBOX, true, true, true ) // use the old control name for compatibility reasons - ,OEntryListHelper( (OControlModel&)*this ) + ,OEntryListHelper( static_cast<OControlModel&>(*this) ) ,OErrorBroadcaster( OComponentHelper::rBHelper ) ,m_aListRowSet() ,m_nConvertedBoundValuesType(0) @@ -173,7 +173,7 @@ namespace frm OListBoxModel::OListBoxModel( const OListBoxModel* _pOriginal, const Reference<XComponentContext>& _rxFactory ) :OBoundControlModel( _pOriginal, _rxFactory ) - ,OEntryListHelper( *_pOriginal, (OControlModel&)*this ) + ,OEntryListHelper( *_pOriginal, static_cast<OControlModel&>(*this) ) ,OErrorBroadcaster( OComponentHelper::rBHelper ) ,m_aListRowSet() ,m_eListSourceType( _pOriginal->m_eListSourceType ) |