diff options
author | Noel Grandin <noel@peralex.com> | 2013-05-03 16:54:29 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-05-06 11:27:49 +0200 |
commit | 135d20caa4178c3a6d7682b547c5da6d58310f01 (patch) | |
tree | ff3c2ab2cf8ac119665ee908e04d29c02c41d5ad /vcl | |
parent | e4f37435a0fdd66b2d58633c991c6df720790f39 (diff) |
fdo#46808, Convert SystemClipboardExt service to new style
Service already existed, just needed an IDL file
Change-Id: Icde7c41e48b8c511976c2a65a87dca064546fa95
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/window.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index bc59719e026c..4201c39fa260 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -84,6 +84,7 @@ #include "com/sun/star/datatransfer/dnd/XDropTarget.hpp" #include "com/sun/star/datatransfer/clipboard/XClipboard.hpp" #include "com/sun/star/datatransfer/clipboard/SystemClipboard.hpp" +#include "com/sun/star/datatransfer/clipboard/SystemClipboardExt.hpp" #include "com/sun/star/awt/XTopWindow.hpp" #include "com/sun/star/awt/XDisplayConnection.hpp" #include "com/sun/star/lang/XInitialization.hpp" @@ -8403,10 +8404,9 @@ uno::Reference< XClipboard > Window::GetClipboard() { try { - uno::Reference< XMultiServiceFactory > xFactory( comphelper::getProcessServiceFactory() ); uno::Reference< XComponentContext > xContext( comphelper::getProcessComponentContext() ); - mpWindowImpl->mpFrameData->mxClipboard = uno::Reference< XClipboard >( xFactory->createInstance( OUString("com.sun.star.datatransfer.clipboard.SystemClipboardExt") ), UNO_QUERY ); + mpWindowImpl->mpFrameData->mxClipboard = SystemClipboardExt::create( xContext );; if( !mpWindowImpl->mpFrameData->mxClipboard.is() ) { |