summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiko Tietze <tietze.heiko@gmail.com>2020-04-21 20:19:26 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2020-04-22 02:32:14 +0200
commit8f85ca5aefcf1046d2276585b10144bb97d2a870 (patch)
tree883b5eb33c783d500f118b7147fe4ffb004dd760
parent945cb6336d1e4c9d88b121c3be78930d9a950198 (diff)
Resolves build error from I4c2107b8120797a7cd532b59ca5ccb58ab61a2ae
Change-Id: I2791a51104d73daae5f140ee5b396aa2a64857ff Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92656 Tested-by: Rene Engelhard <rene@debian.org> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
-rw-r--r--cui/source/dialogs/about.cxx22
1 files changed, 3 insertions, 19 deletions
diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx
index e96fb2a50ee1..d04d15a3b49b 100644
--- a/cui/source/dialogs/about.cxx
+++ b/cui/source/dialogs/about.cxx
@@ -37,10 +37,8 @@
#include <sfx2/app.hxx> //SfxApplication::loadBrandSvg
#include <strings.hrc>
-#include <com/sun/star/datatransfer/clipboard/XFlushableClipboard.hpp>
#include <com/sun/star/datatransfer/clipboard/SystemClipboard.hpp>
-#include <vcl/textview.hxx>
-#include <tools/diagnose_ex.h>
+#include <vcl/unohelp2.hxx>
#include <config_feature_opencl.h>
#if HAVE_FEATURE_OPENCL
@@ -252,20 +250,6 @@ IMPL_LINK_NOARG(AboutDialog, HandleClick, weld::Button &, void) {
css::uno::Reference<css::datatransfer::clipboard::XClipboard> xClipboard =
css::datatransfer::clipboard::SystemClipboard::create(
comphelper::getProcessComponentContext());
-
- if (xClipboard.is()) {
- css::uno::Reference<css::datatransfer::XTransferable> xDataObj(
- new TETextDataObject(m_pVersionLabel->get_label()));
- try {
- xClipboard->setContents(xDataObj, nullptr);
-
- css::uno::Reference<css::datatransfer::clipboard::XFlushableClipboard>
- xFlushableClipboard(xClipboard, css::uno::UNO_QUERY);
- if (xFlushableClipboard.is())
- xFlushableClipboard->flushClipboard();
- } catch (const css::uno::Exception &) {
- TOOLS_WARN_EXCEPTION("cui.dialogs", "Caught exception trying to copy");
- }
- }
+ vcl::unohelper::TextDataObject::CopyStringTo(m_pVersionLabel->get_label(), xClipboard);
}
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ \ No newline at end of file