[Libreoffice-commits] core.git: vcl/osx

Stephan Bergmann sbergman at redhat.com
Tue Aug 4 00:47:48 PDT 2015


 vcl/osx/DragSource.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 875e1b50a069a46f59d4c64399ec09ff574fee87
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Aug 4 09:41:07 2015 +0200

    loplugin:refcounting
    
    Change-Id: I8471af77361364ce677f7a31dda78168909dea90

diff --git a/vcl/osx/DragSource.cxx b/vcl/osx/DragSource.cxx
index 7adeff8..5ac5b3c 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;


More information about the Libreoffice-commits mailing list