diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-04-19 12:06:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-04-19 15:04:33 +0200 |
commit | 6a0a0a4d78bb8850bf4a304b83784d3822895efe (patch) | |
tree | 2800dce4daa42965a010336456117733830e2694 /starmath | |
parent | 832b23d9376019619929764606276aacde1e329a (diff) |
use more string_view in comphelper::string
Change-Id: I5d27824694e38de540e5f1fcd8704f8777f65140
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114261
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/inc/cursor.hxx | 2 | ||||
-rw-r--r-- | starmath/inc/dialog.hxx | 6 | ||||
-rw-r--r-- | starmath/source/cursor.cxx | 2 | ||||
-rw-r--r-- | starmath/source/dialog.cxx | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/starmath/inc/cursor.hxx b/starmath/inc/cursor.hxx index 6346017ee5bb..4b670e61cb8c 100644 --- a/starmath/inc/cursor.hxx +++ b/starmath/inc/cursor.hxx @@ -124,7 +124,7 @@ public: * For more complex expressions use InsertCommandText, this method doesn't * use SmParser, this means that it's faster, but not as strong. */ - void InsertSpecial(const OUString& aString); + void InsertSpecial(std::u16string_view aString); /** Create sub-/super script * diff --git a/starmath/inc/dialog.hxx b/starmath/inc/dialog.hxx index 53de6278f51d..fc303ba29fc3 100644 --- a/starmath/inc/dialog.hxx +++ b/starmath/inc/dialog.hxx @@ -435,7 +435,7 @@ class SmSymDefineDialog final : public weld::GenericDialogController void SetOrigSymbol(const SmSym *pSymbol, const OUString &rSymbolSetName); void UpdateButtons(); - bool SelectSymbolSet(weld::ComboBox &rComboBox, const OUString &rSymbolSetName, + bool SelectSymbolSet(weld::ComboBox &rComboBox, std::u16string_view rSymbolSetName, bool bDeleteText); bool SelectSymbol(weld::ComboBox& rComboBox, const OUString &rSymbolName, bool bDeleteText); @@ -454,7 +454,7 @@ public: virtual short run() override; - void SelectOldSymbolSet(const OUString &rSymbolSetName) + void SelectOldSymbolSet(std::u16string_view rSymbolSetName) { SelectSymbolSet(*m_xOldSymbolSets, rSymbolSetName, false); } @@ -464,7 +464,7 @@ public: SelectSymbol(*m_xOldSymbols, rSymbolName, false); } - bool SelectSymbolSet(const OUString &rSymbolSetName) + bool SelectSymbolSet(std::u16string_view rSymbolSetName) { return SelectSymbolSet(*m_xSymbolSets, rSymbolSetName, false); } diff --git a/starmath/source/cursor.cxx b/starmath/source/cursor.cxx index 3698c9d2ddb5..a839b0eb0a02 100644 --- a/starmath/source/cursor.cxx +++ b/starmath/source/cursor.cxx @@ -981,7 +981,7 @@ void SmCursor::InsertElement(SmFormulaElement element){ EndEdit(); } -void SmCursor::InsertSpecial(const OUString& _aString) +void SmCursor::InsertSpecial(std::u16string_view _aString) { BeginEdit(); Delete(); diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx index 8a862516b682..fc722e252bce 100644 --- a/starmath/source/dialog.cxx +++ b/starmath/source/dialog.cxx @@ -1808,7 +1808,7 @@ void SmSymDefineDialog::SetSymbolSetManager(const SmSymbolManager &rMgr) } bool SmSymDefineDialog::SelectSymbolSet(weld::ComboBox& rComboBox, - const OUString &rSymbolSetName, bool bDeleteText) + std::u16string_view rSymbolSetName, bool bDeleteText) { assert((&rComboBox == m_xOldSymbolSets.get() || &rComboBox == m_xSymbolSets.get()) && "Sm : wrong ComboBox"); |