summaryrefslogtreecommitdiff
path: root/sc/source/filter/oox/pagesettings.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-11-04 13:37:06 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-11-07 06:39:05 +0000
commit27513d4df50f6d18b585f4cbec6a4dd3f9b432cc (patch)
tree92b1d636fae62968195b253bc02f936968734c9a /sc/source/filter/oox/pagesettings.cxx
parent7f509501e9b042aeae0cdcc8e267550a45ab43c2 (diff)
loplugin:expandablemethods in sc
Change-Id: Ib417c5e978fca563f8c0ef0dbe6b9d50fead9828 Reviewed-on: https://gerrit.libreoffice.org/30566 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/filter/oox/pagesettings.cxx')
-rw-r--r--sc/source/filter/oox/pagesettings.cxx9
1 files changed, 1 insertions, 8 deletions
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;
}