diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-10-09 15:38:02 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-10-09 18:08:43 +0200 |
commit | 5744ed4ff9f2fab5073c5f8b3153b18109cb5594 (patch) | |
tree | f458e0ec3e33f4481a743125ccdcf2bf9dea57ce /sc/source | |
parent | 7c9a40f7cf996ab2ad15d595a262698435be42e0 (diff) |
EditView->GetWindow()->GetClipboard() is the same as GetSystemClipboard()
so we don't really need the intermediate vcl::Window to get that
Change-Id: I5fa449e46c2226f0fb84f2e230e328c4da5472ae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104125
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/view/editsh.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/ui/view/editsh.cxx b/sc/source/ui/view/editsh.cxx index e076c762be1d..f3b2060c651f 100644 --- a/sc/source/ui/view/editsh.cxx +++ b/sc/source/ui/view/editsh.cxx @@ -640,8 +640,7 @@ void ScEditShell::Execute( SfxRequest& rReq ) const SvxFieldData* pField = pEditView->GetFieldAtCursor(); if (const SvxURLField* pURLField = dynamic_cast<const SvxURLField*>(pField)) { - uno::Reference<datatransfer::clipboard::XClipboard> xClipboard - = pEditView->GetWindow()->GetClipboard(); + uno::Reference<datatransfer::clipboard::XClipboard> xClipboard = GetSystemClipboard(); if (comphelper::LibreOfficeKit::isActive()) { |