sw/source/uibase/uno/unotxdoc.cxx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
New commits: commit 029d761b92d7a5754ad7066238b8c20ae420d263 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Thu Dec 28 20:54:42 2023 +0000 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Fri Dec 29 00:31:42 2023 +0100 simplify this a little Change-Id: I839a5b2277be4a03432d83177228e647ec7a6b85 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161393 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx index 3a14cb0f8f96..fab67cbd6e83 100644 --- a/sw/source/uibase/uno/unotxdoc.cxx +++ b/sw/source/uibase/uno/unotxdoc.cxx @@ -3723,14 +3723,11 @@ OUString SwXTextDocument::hyperlinkInfoAtPosition(int x, int y) if (pWrtShell->GetContentAtPos(point, aContentAtPos)) { - OUString url = static_cast<const SwFormatINetFormat*>(aContentAtPos.aFnd.pAttr)->GetValue(); - return url; + return static_cast<const SwFormatINetFormat*>(aContentAtPos.aFnd.pAttr)->GetValue(); } - else - return OUString(); } - else - return OUString(); + + return OUString(); } uno::Reference<datatransfer::XTransferable> SwXTextDocument::getSelection()