cui/source/dialogs/about.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
New commits: commit 3e9ddfb72522d04702d01a6b2bd98219b5283c76 Author: Michael Weghorn <[email protected]> AuthorDate: Fri Feb 27 18:50:18 2026 +0100 Commit: Michael Weghorn <[email protected]> CommitDate: Sat Feb 28 09:37:14 2026 +0100 cui: Don't use SystemClipboard service ctor in AboutDialog Instead, simply use weld::Widget::get_clipboard to get the clipboard instance. Change-Id: Ie9aa63820b410547b89b38234a08663625512496 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200650 Reviewed-by: Michael Weghorn <[email protected]> Tested-by: Jenkins diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx index 64b203fa1969..3023f3d5afc7 100644 --- a/cui/source/dialogs/about.cxx +++ b/cui/source/dialogs/about.cxx @@ -44,8 +44,6 @@ #include <svtools/langhelp.hxx> #include <unotools/bootstrap.hxx> //utl::Bootstrap::getBuildIdData #include <unotools/configmgr.hxx> //ConfigManager:: - -#include <com/sun/star/datatransfer/clipboard/SystemClipboard.hpp> #include <vcl/unohelp2.hxx> #include <config_feature_opencl.h> @@ -266,8 +264,7 @@ OUString AboutDialog::GetCopyrightString() IMPL_LINK_NOARG(AboutDialog, HandleClick, weld::Button&, void) { css::uno::Reference<css::datatransfer::clipboard::XClipboard> xClipboard - = css::datatransfer::clipboard::SystemClipboard::create( - comphelper::getProcessComponentContext()); + = m_pVersionLabel->get_clipboard(); OUString sInfo = "Version: " + m_pVersionLabel->get_label() + " " // version
