From 719a2adfbdac8ce26a035e5fedeeaade8706832d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 8 May 2017 16:12:01 +0200 Subject: remove unnecessary empty OUString fields and vars Change-Id: I940120087a0bc6b1b0abc30a3e7727ce22b7d9a7 Reviewed-on: https://gerrit.libreoffice.org/37394 Tested-by: Jenkins Reviewed-by: Noel Grandin --- starmath/source/dialog.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'starmath') diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx index b0252455b2f7..868254f60d79 100644 --- a/starmath/source/dialog.cxx +++ b/starmath/source/dialog.cxx @@ -736,10 +736,8 @@ IMPL_LINK( SmDistanceDialog, CheckBoxClickHdl, Button *, pCheckBox, void ) void SmDistanceDialog::SetHelpId(MetricField &rField, const OString& sHelpId) { - const OUString aEmptyText; - rField.SetHelpId(sHelpId); - rField.SetHelpText(aEmptyText); + rField.SetHelpText(""); // since MetricField inherits from SpinField which has a sub Edit field // (which is actually the one we modify) we have to set the help-id @@ -748,7 +746,7 @@ void SmDistanceDialog::SetHelpId(MetricField &rField, const OString& sHelpId) if (pSubEdit) { pSubEdit->SetHelpId(sHelpId); - pSubEdit->SetHelpText(aEmptyText); + pSubEdit->SetHelpText(""); } } -- cgit