diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-11-18 23:30:24 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-11-19 07:09:58 +0100 |
commit | 19926ed35ebb623fc896942b1f232b83edf1fc1e (patch) | |
tree | e69e925050fe667aa746494126abfa3336ce16fe /sw/source/filter/html | |
parent | 8f79f590662145b054661846e018a4fc1837db8a (diff) |
loplugin:stringview: Flag empty string converted to string view
Change-Id: Idf412dc5f235230512160cb4fb7e1a00baa1cfa7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106085
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw/source/filter/html')
-rw-r--r-- | sw/source/filter/html/swhtml.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/filter/html/swhtml.cxx b/sw/source/filter/html/swhtml.cxx index 59770d71785b..c16bcd406089 100644 --- a/sw/source/filter/html/swhtml.cxx +++ b/sw/source/filter/html/swhtml.cxx @@ -3959,7 +3959,7 @@ void SwHTMLParser::NewPara() // parse styles (Don't consider class. This is only possible as long as none of // the CSS1 properties of the class must be formatted hard!!!) - if (HasStyleOptions(aStyle, aId, OUString(), &aLang, &aDir)) + if (HasStyleOptions(aStyle, aId, {}, &aLang, &aDir)) { SfxItemSet aItemSet( m_xDoc->GetAttrPool(), m_pCSS1Parser->GetWhichMap() ); SvxCSS1PropertyInfo aPropInfo; @@ -4093,7 +4093,7 @@ void SwHTMLParser::NewHeading( HtmlTokenId nToken ) std::unique_ptr<HTMLAttrContext> xCntxt(new HTMLAttrContext(nToken, nTextColl, aClass)); // parse styles (regarding class see also NewPara) - if (HasStyleOptions(aStyle, aId, OUString(), &aLang, &aDir)) + if (HasStyleOptions(aStyle, aId, {}, &aLang, &aDir)) { SfxItemSet aItemSet( m_xDoc->GetAttrPool(), m_pCSS1Parser->GetWhichMap() ); SvxCSS1PropertyInfo aPropInfo; @@ -4229,7 +4229,7 @@ void SwHTMLParser::NewTextFormatColl( HtmlTokenId nToken, sal_uInt16 nColl ) std::unique_ptr<HTMLAttrContext> xCntxt(new HTMLAttrContext(nToken, nColl, aClass)); // parse styles (regarding class see also NewPara) - if (HasStyleOptions(aStyle, aId, OUString(), &aLang, &aDir)) + if (HasStyleOptions(aStyle, aId, {}, &aLang, &aDir)) { SfxItemSet aItemSet( m_xDoc->GetAttrPool(), m_pCSS1Parser->GetWhichMap() ); SvxCSS1PropertyInfo aPropInfo; @@ -4833,7 +4833,7 @@ void SwHTMLParser::NewCharFormat( HtmlTokenId nToken ) OSL_ENSURE( pCFormat, "No character format found for token" ); // parse styles (regarding class see also NewPara) - if (HasStyleOptions(aStyle, aId, OUString(), &aLang, &aDir)) + if (HasStyleOptions(aStyle, aId, {}, &aLang, &aDir)) { SfxItemSet aItemSet( m_xDoc->GetAttrPool(), m_pCSS1Parser->GetWhichMap() ); SvxCSS1PropertyInfo aPropInfo; |