From 56d7b9db443f5ace23677629869ffbd599e43d69 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 30 Aug 2012 23:23:36 +0200 Subject: -Werror,-Wunused-private-field (Clang towards 3.2) Change-Id: I3bb7559101c27eacefbf43f751f96135f8792845 --- vcl/aqua/source/dtrans/DragSource.cxx | 8 ++++---- vcl/aqua/source/dtrans/DragSourceContext.cxx | 5 ++--- vcl/aqua/source/dtrans/DragSourceContext.hxx | 7 +------ 3 files changed, 7 insertions(+), 13 deletions(-) (limited to 'vcl/aqua') diff --git a/vcl/aqua/source/dtrans/DragSource.cxx b/vcl/aqua/source/dtrans/DragSource.cxx index 2cf2722d6001..c1c381f836f3 100644 --- a/vcl/aqua/source/dtrans/DragSource.cxx +++ b/vcl/aqua/source/dtrans/DragSource.cxx @@ -119,7 +119,7 @@ Sequence dragSource_getSupportedServiceNames() (void)anImage; (void)aPoint; DragSourceDragEvent dsde(static_cast(mDragSource), - new DragSourceContext(mDragSource), + new DragSourceContext, mDragSource, DNDConstants::ACTION_COPY, DNDConstants::ACTION_COPY); @@ -139,7 +139,7 @@ Sequence dragSource_getSupportedServiceNames() bDropSuccess = DragSource::g_DropSuccess; DragSourceDropEvent dsde(static_cast(mDragSource), - new DragSourceContext(mDragSource), + new DragSourceContext, static_cast< XDragSource* >(mDragSource), SystemToOfficeDragActions(operation), bDropSuccess ); @@ -154,7 +154,7 @@ Sequence dragSource_getSupportedServiceNames() (void)draggedImage; (void)screenPoint; DragSourceDragEvent dsde(static_cast(mDragSource), - new DragSourceContext(mDragSource), + new DragSourceContext, mDragSource, DNDConstants::ACTION_COPY, DNDConstants::ACTION_COPY); @@ -263,7 +263,7 @@ void SAL_CALL DragSource::startDrag(const DragGestureEvent& trigger, trigger.Event >>= mMouseEvent; m_MouseButton= mMouseEvent.Buttons; mXDragSrcListener = listener; - mXCurrentContext = static_cast(new DragSourceContext(this)); + mXCurrentContext = static_cast(new DragSourceContext); auto_ptr clipb(new AquaClipboard(NULL, false)); g_XTransferable = transferable; clipb->setContents(g_XTransferable, uno::Reference()); diff --git a/vcl/aqua/source/dtrans/DragSourceContext.cxx b/vcl/aqua/source/dtrans/DragSourceContext.cxx index 82d161f9c1f0..b5689c133c3d 100644 --- a/vcl/aqua/source/dtrans/DragSourceContext.cxx +++ b/vcl/aqua/source/dtrans/DragSourceContext.cxx @@ -28,9 +28,8 @@ using namespace com::sun::star::datatransfer::dnd::DNDConstants; using namespace com::sun::star::uno; using namespace cppu; -DragSourceContext::DragSourceContext( DragSource* pSource) : - WeakComponentImplHelper1(m_aMutex), - m_pDragSource( pSource) +DragSourceContext::DragSourceContext() : + WeakComponentImplHelper1(m_aMutex) { } diff --git a/vcl/aqua/source/dtrans/DragSourceContext.hxx b/vcl/aqua/source/dtrans/DragSourceContext.hxx index 99f0a629b0cf..100edef7828b 100644 --- a/vcl/aqua/source/dtrans/DragSourceContext.hxx +++ b/vcl/aqua/source/dtrans/DragSourceContext.hxx @@ -27,8 +27,6 @@ #include -#include "DragSource.hxx" - // This class fires events to XDragSourceListener implementations. // Of that interface only dragDropEnd and dropActionChanged are called. // The functions dragEnter, dragExit and dragOver are not supported @@ -40,7 +38,7 @@ class DragSourceContext: public cppu::BaseMutex, private ::boost::noncopyable { public: - DragSourceContext(DragSource* pSource); + DragSourceContext(); ~DragSourceContext(); virtual sal_Int32 SAL_CALL getCurrentCursor( ) @@ -54,9 +52,6 @@ public: virtual void SAL_CALL transferablesFlavorsChanged( ) throw( com::sun::star::uno::RuntimeException); - -private: - DragSource* m_pDragSource; }; -- cgit