diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-12-28 17:56:40 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-12-29 16:42:33 +0100 |
commit | 042033f1e6da22616cb76c8d950c20c9efecbad5 (patch) | |
tree | 26b3f1f42d067506f44550b410f3fb9640616a5b /starmath/source | |
parent | ccfd8e9d09f9ac0a0ea92d0f378391006faaf934 (diff) |
loplugin:stringviewparam: operator +
Change-Id: I044dd21b63d7eb03224675584fa143009c6b6008
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108418
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'starmath/source')
-rw-r--r-- | starmath/source/cfgitem.cxx | 8 | ||||
-rw-r--r-- | starmath/source/cfgitem.hxx | 7 |
2 files changed, 8 insertions, 7 deletions
diff --git a/starmath/source/cfgitem.cxx b/starmath/source/cfgitem.cxx index a7d7d51f71af..e5438e383440 100644 --- a/starmath/source/cfgitem.cxx +++ b/starmath/source/cfgitem.cxx @@ -367,7 +367,7 @@ void SmMathConfig::SetFormatModified( bool bVal ) void SmMathConfig::ReadSymbol( SmSym &rSymbol, const OUString &rSymbolName, - const OUString &rBaseNode ) const + std::u16string_view rBaseNode ) const { Sequence< OUString > aNames = lcl_GetSymbolPropertyNames(); sal_Int32 nProps = aNames.getLength(); @@ -480,7 +480,7 @@ void SmMathConfig::GetSymbols( std::vector< SmSym > &rSymbols ) const rSymbols.resize( nNodes ); for (auto& rSymbol : rSymbols) { - ReadSymbol( rSymbol, *pNode++, SYMBOL_LIST ); + ReadSymbol( rSymbol, *pNode++, u"" SYMBOL_LIST ); } } @@ -564,7 +564,7 @@ void SmMathConfig::LoadFontFormatList() for (const OUString& rNode : aNodes) { SmFontFormat aFntFmt; - ReadFontFormat( aFntFmt, rNode, FONT_FORMAT_LIST ); + ReadFontFormat( aFntFmt, rNode, u"" FONT_FORMAT_LIST ); if (!pFontFormatList->GetFontFormat( rNode )) pFontFormatList->AddFontFormat( rNode, aFntFmt ); } @@ -573,7 +573,7 @@ void SmMathConfig::LoadFontFormatList() void SmMathConfig::ReadFontFormat( SmFontFormat &rFontFormat, - const OUString &rSymbolName, const OUString &rBaseNode ) const + std::u16string_view rSymbolName, std::u16string_view rBaseNode ) const { Sequence< OUString > aNames = lcl_GetFontPropertyNames(); sal_Int32 nProps = aNames.getLength(); diff --git a/starmath/source/cfgitem.hxx b/starmath/source/cfgitem.hxx index fe11ce08f409..47aaf6309d33 100644 --- a/starmath/source/cfgitem.hxx +++ b/starmath/source/cfgitem.hxx @@ -22,6 +22,7 @@ #include <utility.hxx> +#include <string_view> #include <vector> #include <rtl/ustring.hxx> @@ -111,10 +112,10 @@ class SmMathConfig final : public utl::ConfigItem, public SfxBroadcaster void ReadSymbol( SmSym &rSymbol, const OUString &rSymbolName, - const OUString &rBaseNode ) const; + std::u16string_view rBaseNode ) const; void ReadFontFormat( SmFontFormat &rFontFormat, - const OUString &rSymbolName, - const OUString &rBaseNode ) const; + std::u16string_view rSymbolName, + std::u16string_view rBaseNode ) const; void SetOtherIfNotEqual( bool &rbItem, bool bNewVal ); |