diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-19 14:40:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-30 07:20:51 +0100 |
commit | 20e5f64215853bdd32c5f16394ba7f2f36745904 (patch) | |
tree | dab302d397def2f9a04cf9f3f9e170b0ef2c84b9 /sw/source/filter/html/htmlcss1.cxx | |
parent | 036b51dbc49b533d1db773d8627d56ab86bca487 (diff) |
loplugin:unused-returns in sw
Change-Id: I753fcdd35d461880a8d8160213cabd465cfde967
Reviewed-on: https://gerrit.libreoffice.org/48189
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/html/htmlcss1.cxx')
-rw-r--r-- | sw/source/filter/html/htmlcss1.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sw/source/filter/html/htmlcss1.cxx b/sw/source/filter/html/htmlcss1.cxx index 555d9b066269..bddccc481084 100644 --- a/sw/source/filter/html/htmlcss1.cxx +++ b/sw/source/filter/html/htmlcss1.cxx @@ -2151,7 +2151,7 @@ std::unique_ptr<HTMLAttrContext> SwHTMLParser::PopContext( HtmlTokenId nToken ) return xCntxt; } -bool SwHTMLParser::GetMarginsFromContext( sal_uInt16& nLeft, +void SwHTMLParser::GetMarginsFromContext( sal_uInt16& nLeft, sal_uInt16& nRight, short& nIndent, bool bIgnoreTopContext ) const @@ -2160,7 +2160,7 @@ bool SwHTMLParser::GetMarginsFromContext( sal_uInt16& nLeft, if( bIgnoreTopContext ) { if( !nPos ) - return false; + return; else nPos--; } @@ -2171,11 +2171,9 @@ bool SwHTMLParser::GetMarginsFromContext( sal_uInt16& nLeft, if( pCntxt->IsLRSpaceChanged() ) { pCntxt->GetMargins( nLeft, nRight, nIndent ); - return true; + return; } } - - return false; } void SwHTMLParser::GetMarginsFromContextWithNumBul( sal_uInt16& nLeft, |