diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-08 11:10:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-08 11:11:52 +0000 |
commit | 1b277a37c5ad219d2e275df1289ccfbce27183ee (patch) | |
tree | 19ed989da90eaca6e3847239a47f1095d5cc9841 /extensions/source/propctrlr/formcomponenthandler.cxx | |
parent | f2beebbfe78bfd5dd26318ea269f49aeee6bd642 (diff) |
loplugin:expandablemethods in extensions
Change-Id: I93a770933de86146de1d25db9d596615916c3e28
Reviewed-on: https://gerrit.libreoffice.org/30689
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'extensions/source/propctrlr/formcomponenthandler.cxx')
-rw-r--r-- | extensions/source/propctrlr/formcomponenthandler.cxx | 37 |
1 files changed, 12 insertions, 25 deletions
diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx index c20126ef3b6a..ae1f136a93cd 100644 --- a/extensions/source/propctrlr/formcomponenthandler.cxx +++ b/extensions/source/propctrlr/formcomponenthandler.cxx @@ -825,21 +825,6 @@ namespace pcr } - void FormComponentPropertyHandler::onNewComponent() - { - FormComponentPropertyHandler_Base::onNewComponent(); - if ( !m_xComponentPropertyInfo.is() && m_xComponent.is() ) - throw NullPointerException(); - - m_xPropertyState.set( m_xComponent, UNO_QUERY ); - m_eComponentClass = eUnknown; - m_bComponentIsSubForm = m_bHaveListSource = m_bHaveCommand = false; - m_nClassId = 0; - - impl_initComponentMetaData_throw(); - } - - Sequence< Property > SAL_CALL FormComponentPropertyHandler::doDescribeSupportedProperties() const { if ( !m_xComponentPropertyInfo.is() ) @@ -1535,7 +1520,7 @@ namespace pcr // ----- DataSourceName ----- case PROPERTY_ID_DATASOURCE: // reset the connection, now that we have a new data source - impl_clearRowsetConnection_nothrow(); + m_xRowSetConnection.clear(); // available list source values (tables or queries) might have changed if ( !_bFirstTimeInit && m_bHaveListSource ) @@ -2016,11 +2001,19 @@ namespace pcr } - void FormComponentPropertyHandler::impl_initComponentMetaData_throw() + void FormComponentPropertyHandler::onNewComponent() { + FormComponentPropertyHandler_Base::onNewComponent(); + if ( !m_xComponentPropertyInfo.is() && m_xComponent.is() ) + throw NullPointerException(); + + m_xPropertyState.set( m_xComponent, UNO_QUERY ); + m_eComponentClass = eUnknown; + m_bComponentIsSubForm = m_bHaveListSource = m_bHaveCommand = false; + m_nClassId = 0; + try { - // component class m_eComponentClass = eUnknown; @@ -2064,7 +2057,7 @@ namespace pcr } catch( const Exception& ) { - OSL_FAIL( "FormComponentPropertyHandler::impl_initComponentMetaData_throw: caught an exception!" ); + OSL_FAIL( "FormComponentPropertyHandler::onNewComponent: caught an exception!" ); DBG_UNHANDLED_EXCEPTION(); } } @@ -2364,12 +2357,6 @@ namespace pcr } - void FormComponentPropertyHandler::impl_clearRowsetConnection_nothrow() - { - m_xRowSetConnection.clear(); - } - - void FormComponentPropertyHandler::impl_displaySQLError_nothrow( const ::dbtools::SQLExceptionInfo& _rErrorDescriptor ) const { ::dbtools::showError( _rErrorDescriptor, VCLUnoHelper::GetInterface( impl_getDefaultDialogParent_nothrow() ), m_xContext ); |