summaryrefslogtreecommitdiff
path: root/starmath/source/view.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-05-19 17:17:03 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-05-19 17:17:03 +0200
commitc8b19bdd2a2f3658e158bae44d4b472497591f85 (patch)
tree02446a5978aaba7fee40934a55203355623ff211 /starmath/source/view.cxx
parent02d0f134f300b0f739f09aa2743ed904cfa6666e (diff)
loplugin:stringcopy: starmath
Change-Id: I2687b8ce4b20871f50401cbc50746c35b9668eba
Diffstat (limited to 'starmath/source/view.cxx')
-rw-r--r--starmath/source/view.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index e7aa71504eea..af8ffbe9bf7a 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -655,7 +655,7 @@ void SmEditController::StateChanged(sal_uInt16 nSID, SfxItemState eState, const
{
const SfxStringItem *pItem = dynamic_cast<const SfxStringItem*>( pState);
- if ((pItem != nullptr) && (rEdit.GetText() != OUString(pItem->GetValue())))
+ if ((pItem != nullptr) && (rEdit.GetText() != pItem->GetValue()))
rEdit.SetText(pItem->GetValue());
SfxControllerItem::StateChanged (nSID, eState, pState);
}