summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-04-21 12:28:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-04-21 14:11:57 +0200
commit69e385ec0240d0c44caa5a4ea0195e06007cd588 (patch)
tree905f798798ac36bc38d43669aa543498f7093c3e /starmath
parentd757051f1c0c6a1b3239dcf0d1c6c7e20392d20b (diff)
simplify stripStart/End pairs into a single strip call
Change-Id: I32b1b7d944a4ec49d7daa5b8fa9371b059380062 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114393 Tested-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/dialog.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx
index fc722e252bce..523f2fa89d7f 100644
--- a/starmath/source/dialog.cxx
+++ b/starmath/source/dialog.cxx
@@ -1813,8 +1813,7 @@ bool SmSymDefineDialog::SelectSymbolSet(weld::ComboBox& rComboBox,
assert((&rComboBox == m_xOldSymbolSets.get() || &rComboBox == m_xSymbolSets.get()) && "Sm : wrong ComboBox");
// trim SymbolName (no leading and trailing blanks)
- OUString aNormName = comphelper::string::stripStart(rSymbolSetName, ' ');
- aNormName = comphelper::string::stripEnd(aNormName, ' ');
+ OUString aNormName = comphelper::string::strip(rSymbolSetName, ' ');
// and remove possible deviations within the input
rComboBox.set_entry_text(aNormName);