summaryrefslogtreecommitdiff
path: root/cui/source/dialogs/cuihyperdlg.cxx
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2017-03-15 00:22:12 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-03-15 17:45:37 +0000
commitf3d08a98495d400734c471fa590927e7a0aa4e64 (patch)
tree2944010653c4385db3710b85ae4ce4d2000c32b8 /cui/source/dialogs/cuihyperdlg.cxx
parenteafe944e8bc5b14aa28def8f24f2a11d4d0c3900 (diff)
replace creative empty string check
Change-Id: I2e7c6fe0e3da4ab879486300a6e424b671322ad1 Reviewed-on: https://gerrit.libreoffice.org/35221 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui/source/dialogs/cuihyperdlg.cxx')
-rw-r--r--cui/source/dialogs/cuihyperdlg.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/cui/source/dialogs/cuihyperdlg.cxx b/cui/source/dialogs/cuihyperdlg.cxx
index ab7ae4575cb3..b950632a60b2 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 });