diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-12-14 09:30:57 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-12-14 13:34:29 +0100 |
commit | 9c90c5e4740763d116d1354d1e4315d338a92140 (patch) | |
tree | cad98083f5eba4ca09dec0e24bb59800979c9992 /reportdesign/source | |
parent | c0ac7ae73480cd2b01f24e88c01bee507e8638f9 (diff) |
loplugin:expandablemethods
Change-Id: Ia8192e03feda9e8ae70e29d8dc98d995f015f9ce
Reviewed-on: https://gerrit.libreoffice.org/85135
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'reportdesign/source')
-rw-r--r-- | reportdesign/source/core/api/Group.cxx | 2 | ||||
-rw-r--r-- | reportdesign/source/core/inc/Group.hxx | 2 | ||||
-rw-r--r-- | reportdesign/source/filter/xml/xmlStyleImport.cxx | 2 | ||||
-rw-r--r-- | reportdesign/source/filter/xml/xmlStyleImport.hxx | 2 | ||||
-rw-r--r-- | reportdesign/source/ui/dlg/AddField.cxx | 2 | ||||
-rw-r--r-- | reportdesign/source/ui/inc/AddField.hxx | 1 |
6 files changed, 3 insertions, 8 deletions
diff --git a/reportdesign/source/core/api/Group.cxx b/reportdesign/source/core/api/Group.cxx index 2f13e170914c..e925bac26b6c 100644 --- a/reportdesign/source/core/api/Group.cxx +++ b/reportdesign/source/core/api/Group.cxx @@ -300,7 +300,7 @@ void OGroup::setSection( const OUString& _sProperty // create section if needed if ( _bOn && !_member.is() ) - _member = OSection::createOSection(this, getContext()); + _member = OSection::createOSection(this, m_xContext); else if ( !_bOn ) ::comphelper::disposeComponent(_member); diff --git a/reportdesign/source/core/inc/Group.hxx b/reportdesign/source/core/inc/Group.hxx index ef2587bd36bd..80f54a9270eb 100644 --- a/reportdesign/source/core/inc/Group.hxx +++ b/reportdesign/source/core/inc/Group.hxx @@ -159,8 +159,6 @@ namespace reportdesign { cppu::WeakComponentImplHelperBase::removeEventListener(aListener); } - - const css::uno::Reference< css::uno::XComponentContext >& getContext() const { return m_xContext; } }; } // namespace reportdesign diff --git a/reportdesign/source/filter/xml/xmlStyleImport.cxx b/reportdesign/source/filter/xml/xmlStyleImport.cxx index 6c454eda45d0..cf22621347bf 100644 --- a/reportdesign/source/filter/xml/xmlStyleImport.cxx +++ b/reportdesign/source/filter/xml/xmlStyleImport.cxx @@ -98,7 +98,7 @@ void OControlStyleContext::FillPropertySet(const Reference< XPropertySet > & rPr XML_STYLE_FAMILY_DATA_STYLE, m_sDataStyleName))); if ( !pStyle ) { - OReportStylesContext* pMyStyles = dynamic_cast< OReportStylesContext *>(GetOwnImport().GetAutoStyles()); + OReportStylesContext* pMyStyles = dynamic_cast< OReportStylesContext *>(m_rImport.GetAutoStyles()); if ( pMyStyles ) pStyle = const_cast<SvXMLNumFormatContext*>(dynamic_cast< const SvXMLNumFormatContext *>(pMyStyles-> FindStyleChildContext(XML_STYLE_FAMILY_DATA_STYLE, m_sDataStyleName, true))); diff --git a/reportdesign/source/filter/xml/xmlStyleImport.hxx b/reportdesign/source/filter/xml/xmlStyleImport.hxx index e5fce77c154a..a75f290fd4cb 100644 --- a/reportdesign/source/filter/xml/xmlStyleImport.hxx +++ b/reportdesign/source/filter/xml/xmlStyleImport.hxx @@ -44,8 +44,6 @@ namespace rptxml sal_Int32 m_nNumberFormat; ORptFilter& m_rImport; - ORptFilter& GetOwnImport() const { return m_rImport;} - OControlStyleContext(const OControlStyleContext&) = delete; void operator =(const OControlStyleContext&) = delete; protected: diff --git a/reportdesign/source/ui/dlg/AddField.cxx b/reportdesign/source/ui/dlg/AddField.cxx index b24849e9a8ce..341430cde531 100644 --- a/reportdesign/source/ui/dlg/AddField.cxx +++ b/reportdesign/source/ui/dlg/AddField.cxx @@ -276,7 +276,7 @@ void OAddFieldWindow::fillDescriptor(const weld::TreeIter& rSelected, svx::OData rDescriptor[ svx::DataAccessDescriptorProperty::Command ] <<= GetCommand(); rDescriptor[ svx::DataAccessDescriptorProperty::CommandType ] <<= GetCommandType(); - rDescriptor[ svx::DataAccessDescriptorProperty::EscapeProcessing ] <<= GetEscapeProcessing(); + rDescriptor[ svx::DataAccessDescriptorProperty::EscapeProcessing ] <<= m_bEscapeProcessing; rDescriptor[ svx::DataAccessDescriptorProperty::Connection ] <<= getConnection(); ColumnInfo* pInfo = reinterpret_cast<ColumnInfo*>(m_xListBox->get_id(rSelected).toInt64()); diff --git a/reportdesign/source/ui/inc/AddField.hxx b/reportdesign/source/ui/inc/AddField.hxx index b5397b284fc3..a15c8091f13b 100644 --- a/reportdesign/source/ui/inc/AddField.hxx +++ b/reportdesign/source/ui/inc/AddField.hxx @@ -85,7 +85,6 @@ public: const OUString& GetCommand() const { return m_aCommandName; } sal_Int32 GetCommandType() const { return m_nCommandType; } - bool GetEscapeProcessing() const { return m_bEscapeProcessing; } void SetCreateHdl(const Link<OAddFieldWindow&,void>& _aCreateLink) { m_aCreateLink = _aCreateLink; } css::uno::Reference< css::sdbc::XConnection> getConnection() const; |