diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-12-28 20:54:42 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-12-29 00:31:42 +0100 |
commit | 029d761b92d7a5754ad7066238b8c20ae420d263 (patch) | |
tree | 0a109dc2221a06e08c8c2935b9293aadfe0c4277 | |
parent | 4399bccc5ee5a3fa69a8818e7ae265c144d33d64 (diff) |
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.mcnamara@collabora.com>
-rw-r--r-- | sw/source/uibase/uno/unotxdoc.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
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() |