summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-04-13 21:27:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-04-14 08:29:08 +0200
commit8f59317223e0b8e1e5e6e4145b6ee457fe9e15f3 (patch)
tree4ed567d87c66931572848ceeae1004a6f237bc3e /starmath
parent2e3b0c5d42d60d46cd9f8b8eda9424b095c63418 (diff)
loplugin:sequentialassign in starmath..svl
Change-Id: I95d7b67cd8b6b68c087ff96fdb6bb283ab8b49ec Reviewed-on: https://gerrit.libreoffice.org/70718 Tested-by: Jenkins 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 5fdaeda48636..fd7d7f4061cb 100644
--- a/starmath/source/dialog.cxx
+++ b/starmath/source/dialog.cxx
@@ -1808,8 +1808,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 (rSymbolSetName);
- aNormName = comphelper::string::stripStart(aNormName, ' ');
+ OUString aNormName = comphelper::string::stripStart(rSymbolSetName, ' ');
aNormName = comphelper::string::stripEnd(aNormName, ' ');
// and remove possible deviations within the input
rComboBox.set_entry_text(aNormName);