summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorgokaysatir <gokaysatir@collabora.com>2020-10-07 12:57:13 +0300
committerJan Holesovsky <kendy@collabora.com>2020-10-08 13:56:55 +0200
commitca84daab26d4fec1b43be81478ef629f8c1be7cf (patch)
treee1405659d6f17514b4e96f88667154873af6c06c /sc
parentbbeb488ce5de2b6fa361b3e623b838e0237b128d (diff)
Online: "Copy hyperlink location" feature improvement.
Lambda functions are replaced with class pointers. Change-Id: I48628d3105533aad2463bd8ade1f65cf5b154b0f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104054 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/editsh.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/sc/source/ui/view/editsh.cxx b/sc/source/ui/view/editsh.cxx
index 03b282f942fb..359a4e0994a7 100644
--- a/sc/source/ui/view/editsh.cxx
+++ b/sc/source/ui/view/editsh.cxx
@@ -642,13 +642,7 @@ void ScEditShell::Execute( SfxRequest& rReq )
uno::Reference<datatransfer::clipboard::XClipboard> xClipboard
= pEditView->GetWindow()->GetClipboard();
- if (comphelper::LibreOfficeKit::isActive())
- {
- std::function<void (int, const char*)> callback = [&] (int callbackType, const char* text) { pViewData->GetViewShell()->libreOfficeKitViewCallback(callbackType, text); } ;
- vcl::unohelper::TextDataObject::CopyStringTo(pURLField->GetURL(), xClipboard, &callback);
- }
- else
- vcl::unohelper::TextDataObject::CopyStringTo(pURLField->GetURL(), xClipboard, nullptr);
+ vcl::unohelper::TextDataObject::CopyStringTo(pURLField->GetURL(), xClipboard, SfxViewShell::Current());
}
}
break;