cui/source/dialogs/cuihyperdlg.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit f3d08a98495d400734c471fa590927e7a0aa4e64 Author: Jochen Nitschke <j.nitschke+loger...@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 <c...@libreoffice.org> Reviewed-by: Noel Grandin <noel.gran...@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 }); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits