diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-08-04 09:41:07 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-08-04 09:47:16 +0200 |
commit | 875e1b50a069a46f59d4c64399ec09ff574fee87 (patch) | |
tree | d4fc6238b0c981bd6356f1785d73157fe7d514a0 /vcl/osx | |
parent | b9d0fe1cec0af280b0fbb80ee98769b18bb255e9 (diff) |
loplugin:refcounting
Change-Id: I8471af77361364ce677f7a31dda78168909dea90
Diffstat (limited to 'vcl/osx')
-rw-r--r-- | vcl/osx/DragSource.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/vcl/osx/DragSource.cxx b/vcl/osx/DragSource.cxx index 7adeff85c490..5ac5b3c05f1f 100644 --- a/vcl/osx/DragSource.cxx +++ b/vcl/osx/DragSource.cxx @@ -34,7 +34,6 @@ #include "osx/salframe.h" #include <cassert> -#include <memory> using namespace cppu; using namespace osl; @@ -48,7 +47,6 @@ using namespace com::sun::star::awt::MouseButton; using namespace com::sun::star::awt; using namespace com::sun::star::lang; using namespace comphelper; -using namespace std; // For OOo internal D&D we provide the Transferable without NSDragPboard // interference as a shortcut @@ -234,7 +232,7 @@ void SAL_CALL DragSource::startDrag(const DragGestureEvent& trigger, m_MouseButton= mMouseEvent.Buttons; mXDragSrcListener = listener; mXCurrentContext = static_cast<XDragSourceContext*>(new DragSourceContext); - unique_ptr<AquaClipboard> clipb(new AquaClipboard(NULL, false)); + rtl::Reference<AquaClipboard> clipb(new AquaClipboard(NULL, false)); g_XTransferable = transferable; clipb->setContents(g_XTransferable, uno::Reference<XClipboardOwner>()); mDragSourceActions = sourceActions; |