From deca1830c8b2446fde35a443248638354b37239b Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 8 May 2015 23:46:26 +0200 Subject: loplugin:staticmethods Change-Id: I186c81923857d06ac7a87caf9d5961f44b89b559 --- vcl/osx/DropTarget.cxx | 5 +++-- vcl/osx/DropTarget.hxx | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/vcl/osx/DropTarget.cxx b/vcl/osx/DropTarget.cxx index 28843b2ca544..b52e433f6db1 100644 --- a/vcl/osx/DropTarget.cxx +++ b/vcl/osx/DropTarget.cxx @@ -99,7 +99,8 @@ namespace /* private */ -(BOOL)prepareForDragOperation:(id )sender { - return mDropTarget->prepareForDragOperation(sender); + (void) sender; + return DropTarget::prepareForDragOperation(); } -(BOOL)performDragOperation:(id )sender @@ -282,7 +283,7 @@ void DropTarget::draggingExited(id /*sender*/) [[NSCursor arrowCursor] set]; } -BOOL DropTarget::prepareForDragOperation(id /*sender*/) +BOOL DropTarget::prepareForDragOperation() { return 1; } diff --git a/vcl/osx/DropTarget.hxx b/vcl/osx/DropTarget.hxx index d67b647b7111..09f4ee898218 100644 --- a/vcl/osx/DropTarget.hxx +++ b/vcl/osx/DropTarget.hxx @@ -124,7 +124,7 @@ public: NSDragOperation draggingEntered(id sender); NSDragOperation draggingUpdated(id sender); void draggingExited(id sender); - BOOL prepareForDragOperation(id sender); + static BOOL prepareForDragOperation(); BOOL performDragOperation(id sender); void concludeDragOperation(id sender); -- cgit