summaryrefslogtreecommitdiff
path: root/starmath/source
diff options
context:
space:
mode:
Diffstat (limited to 'starmath/source')
-rw-r--r--starmath/source/cfgitem.cxx8
-rw-r--r--starmath/source/cfgitem.hxx7
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 );