Kaydet (Commit) 875e1b50 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:refcounting

Change-Id: I8471af77361364ce677f7a31dda78168909dea90
üst b9d0fe1c
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
#include "osx/salframe.h" #include "osx/salframe.h"
#include <cassert> #include <cassert>
#include <memory>
using namespace cppu; using namespace cppu;
using namespace osl; using namespace osl;
...@@ -48,7 +47,6 @@ using namespace com::sun::star::awt::MouseButton; ...@@ -48,7 +47,6 @@ using namespace com::sun::star::awt::MouseButton;
using namespace com::sun::star::awt; using namespace com::sun::star::awt;
using namespace com::sun::star::lang; using namespace com::sun::star::lang;
using namespace comphelper; using namespace comphelper;
using namespace std;
// For OOo internal D&D we provide the Transferable without NSDragPboard // For OOo internal D&D we provide the Transferable without NSDragPboard
// interference as a shortcut // interference as a shortcut
...@@ -234,7 +232,7 @@ void SAL_CALL DragSource::startDrag(const DragGestureEvent& trigger, ...@@ -234,7 +232,7 @@ void SAL_CALL DragSource::startDrag(const DragGestureEvent& trigger,
m_MouseButton= mMouseEvent.Buttons; m_MouseButton= mMouseEvent.Buttons;
mXDragSrcListener = listener; mXDragSrcListener = listener;
mXCurrentContext = static_cast<XDragSourceContext*>(new DragSourceContext); 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; g_XTransferable = transferable;
clipb->setContents(g_XTransferable, uno::Reference<XClipboardOwner>()); clipb->setContents(g_XTransferable, uno::Reference<XClipboardOwner>());
mDragSourceActions = sourceActions; mDragSourceActions = sourceActions;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment