From 3e82897353e576dc6e3fbf55371fda5a0c3415df Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 12 Jun 2014 14:06:28 +0200 Subject: improve the inlinesimplememberfunctions clang plugin Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e --- cui/source/dialogs/cuicharmap.cxx | 4 ---- cui/source/inc/cuicharmap.hxx | 2 +- cui/source/inc/radiobtnbox.hxx | 2 +- cui/source/options/cfgchart.cxx | 8 -------- cui/source/options/cfgchart.hxx | 4 ++-- cui/source/options/radiobtnbox.cxx | 4 ---- 6 files changed, 4 insertions(+), 20 deletions(-) (limited to 'cui') diff --git a/cui/source/dialogs/cuicharmap.cxx b/cui/source/dialogs/cuicharmap.cxx index eaa041eca53e..f23c8e1082dc 100644 --- a/cui/source/dialogs/cuicharmap.cxx +++ b/cui/source/dialogs/cuicharmap.cxx @@ -112,10 +112,6 @@ SvxCharacterMap::~SvxCharacterMap() -const Font& SvxCharacterMap::GetCharFont() const -{ - return aFont; -} diff --git a/cui/source/inc/cuicharmap.hxx b/cui/source/inc/cuicharmap.hxx index 09211e8b4db3..8af1b917362e 100644 --- a/cui/source/inc/cuicharmap.hxx +++ b/cui/source/inc/cuicharmap.hxx @@ -102,7 +102,7 @@ public: void DisableFontSelection(); - const Font& GetCharFont() const; + const Font& GetCharFont() const { return aFont;} void SetCharFont( const Font& rFont ); void SetChar( sal_UCS4 ); diff --git a/cui/source/inc/radiobtnbox.hxx b/cui/source/inc/radiobtnbox.hxx index ad81283bf4a7..1688bcd43905 100644 --- a/cui/source/inc/radiobtnbox.hxx +++ b/cui/source/inc/radiobtnbox.hxx @@ -43,7 +43,7 @@ public: void HandleEntryChecked( SvTreeListEntry* _pEntry ); - const Point& GetCurMousePoint() const; + const Point& GetCurMousePoint() const { return m_aCurMousePoint;} long GetControlColumnWidth() const; }; diff --git a/cui/source/options/cfgchart.cxx b/cui/source/options/cfgchart.cxx index 8e755a47737b..8c10a9e0e4be 100644 --- a/cui/source/options/cfgchart.cxx +++ b/cui/source/options/cfgchart.cxx @@ -313,15 +313,7 @@ void SvxChartColorTableItem::SetOptions( SvxChartOptions* pOpts ) const } -SvxChartColorTable & SvxChartColorTableItem::GetColorList() -{ - return m_aColorTable; -} -const SvxChartColorTable & SvxChartColorTableItem::GetColorList() const -{ - return m_aColorTable; -} void SvxChartColorTableItem::ReplaceColorByIndex( size_t _nIndex, const XColorEntry & _rEntry ) { diff --git a/cui/source/options/cfgchart.hxx b/cui/source/options/cfgchart.hxx index 0a0ad216304d..fdfc06f675ba 100644 --- a/cui/source/options/cfgchart.hxx +++ b/cui/source/options/cfgchart.hxx @@ -97,8 +97,8 @@ public: virtual bool operator==( const SfxPoolItem& ) const SAL_OVERRIDE; void SetOptions( SvxChartOptions* pOpts ) const; - const SvxChartColorTable & GetColorList() const ; - SvxChartColorTable & GetColorList(); + const SvxChartColorTable & GetColorList() const { return m_aColorTable;} + SvxChartColorTable & GetColorList() { return m_aColorTable;} void ReplaceColorByIndex( size_t _nIndex, const XColorEntry & _rEntry ); private: diff --git a/cui/source/options/radiobtnbox.cxx b/cui/source/options/radiobtnbox.cxx index fd7de8f3d505..7830cbe024f2 100644 --- a/cui/source/options/radiobtnbox.cxx +++ b/cui/source/options/radiobtnbox.cxx @@ -84,10 +84,6 @@ void SvxRadioButtonListBox::HandleEntryChecked( SvTreeListEntry* _pEntry ) SetCheckButtonState( _pEntry, SV_BUTTON_CHECKED ); } -const Point& SvxRadioButtonListBox::GetCurMousePoint() const -{ - return m_aCurMousePoint; -} long SvxRadioButtonListBox::GetControlColumnWidth() const { -- cgit