From 27513d4df50f6d18b585f4cbec6a4dd3f9b432cc Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 4 Nov 2016 13:37:06 +0200 Subject: loplugin:expandablemethods in sc Change-Id: Ib417c5e978fca563f8c0ef0dbe6b9d50fead9828 Reviewed-on: https://gerrit.libreoffice.org/30566 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/source/filter/oox/pagesettings.cxx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'sc/source/filter/oox/pagesettings.cxx') diff --git a/sc/source/filter/oox/pagesettings.cxx b/sc/source/filter/oox/pagesettings.cxx index ee4cf260d620..b5bd39b5c152 100644 --- a/sc/source/filter/oox/pagesettings.cxx +++ b/sc/source/filter/oox/pagesettings.cxx @@ -393,8 +393,6 @@ private: /** Returns the current line height of the specified portion. */ double getCurrHeight( HFPortionId ePortion ) const; - /** Returns the current line height. */ - double getCurrHeight() const; /** Updates the current line height of the specified portion, using the current font size. */ void updateCurrHeight( HFPortionId ePortion ); @@ -736,11 +734,6 @@ double HeaderFooterParser::getCurrHeight( HFPortionId ePortion ) const return (fMaxHt == 0.0) ? maFontModel.mfHeight : fMaxHt; } -double HeaderFooterParser::getCurrHeight() const -{ - return getCurrHeight( meCurrPortion ); -} - void HeaderFooterParser::updateCurrHeight( HFPortionId ePortion ) { double& rfMaxHt = maPortions[ ePortion ].mfCurrHeight; @@ -782,7 +775,7 @@ void HeaderFooterParser::appendLineBreak() { getEndPos()->gotoEnd( false ); getEndPos()->setString( OUString( '\n' ) ); - getPortion().mfTotalHeight += getCurrHeight(); + getPortion().mfTotalHeight += getCurrHeight( meCurrPortion ); // add the current line height. getPortion().mfCurrHeight = 0; } -- cgit