diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-07-11 10:21:15 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-07-11 10:24:13 +0200 |
commit | 73cdc655fb16fa229324d66eba01f0a3262314a4 (patch) | |
tree | c8cbec3f119508d99e5abc5ddbf61b8ff8920170 /toolkit | |
parent | 81a608e930c29f6210524df939c7a1d8b1093069 (diff) |
fdo#66718: Demote SystemClipboard.createUnix to an internal hack
...see <https://bugs.freedesktop.org/show_bug.cgi?id=66718#c8> for details.
Change-Id: I6e786ce21f41e51b480d0113ac0bd6a0013f4fb1
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/awt/vclxtoolkit.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/toolkit/source/awt/vclxtoolkit.cxx b/toolkit/source/awt/vclxtoolkit.cxx index 5be6f14bc60c..afe3eb1a3f8f 100644 --- a/toolkit/source/awt/vclxtoolkit.cxx +++ b/toolkit/source/awt/vclxtoolkit.cxx @@ -1315,10 +1315,9 @@ css::uno::Reference< css::awt::XWindowPeer > VCLXToolkit::ImplCreateWindow( { if( !mxClipboard.is() ) { - ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > xContext = ::comphelper::getProcessComponentContext(); // remember clipboard here - mxClipboard = ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard > ( - ::com::sun::star::datatransfer::clipboard::SystemClipboard::createDefault(xContext), ::com::sun::star::uno::UNO_QUERY ); + mxClipboard = css::datatransfer::clipboard::SystemClipboard::create( + comphelper::getProcessComponentContext()); } return mxClipboard; |