[Libreoffice-commits] core.git: cui/source
Jochen Nitschke
j.nitschke+logerrit at ok.de
Wed Mar 15 17:45:56 UTC 2017
cui/source/dialogs/cuihyperdlg.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit f3d08a98495d400734c471fa590927e7a0aa4e64
Author: Jochen Nitschke <j.nitschke+logerrit at ok.de>
Date: Wed Mar 15 00:22:12 2017 +0100
replace creative empty string check
Change-Id: I2e7c6fe0e3da4ab879486300a6e424b671322ad1
Reviewed-on: https://gerrit.libreoffice.org/35221
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/cui/source/dialogs/cuihyperdlg.cxx b/cui/source/dialogs/cuihyperdlg.cxx
index ab7ae45..b950632 100644
--- a/cui/source/dialogs/cuihyperdlg.cxx
+++ b/cui/source/dialogs/cuihyperdlg.cxx
@@ -200,8 +200,7 @@ void SvxHpLinkDlg::Apply()
const SvxHyperlinkItem *aItem = static_cast<const SvxHyperlinkItem *>(
aItemSet.GetItem (SID_HYPERLINK_SETLINK));
- OUString aStrEmpty;
- if ( aItem->GetURL() != aStrEmpty )
+ if ( !aItem->GetURL().isEmpty() )
GetDispatcher()->ExecuteList(SID_HYPERLINK_SETLINK,
SfxCallMode::ASYNCHRON | SfxCallMode::RECORD, { aItem });
More information about the Libreoffice-commits
mailing list