diff options
-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() |