From d5397bf17d1b2d268c1d5905079b69619ea0467a Mon Sep 17 00:00:00 2001 From: Jochen Nitschke Date: Tue, 24 May 2016 17:27:38 +0200 Subject: C++11: disable ctors/operators with delete (dtrans) replace the old declare and don't implement pattern with C++11 delete keyword. remove obsolete default ctor declarations. Change-Id: I90cce42445e3b0558dc9b6e0f9cd2a27359e5d9e Reviewed-on: https://gerrit.libreoffice.org/25411 Tested-by: Jochen Nitschke Reviewed-by: Michael Stahl --- dtrans/source/win32/dnd/sourcecontext.hxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'dtrans/source/win32/dnd/sourcecontext.hxx') diff --git a/dtrans/source/win32/dnd/sourcecontext.hxx b/dtrans/source/win32/dnd/sourcecontext.hxx index 937c5d9ea1bf..9f1788b22e56 100644 --- a/dtrans/source/win32/dnd/sourcecontext.hxx +++ b/dtrans/source/win32/dnd/sourcecontext.hxx @@ -44,13 +44,11 @@ class SourceContext: public MutexDummy, // the action ( copy, move etc) sal_Int8 m_currentAction; - SourceContext(); - SourceContext( const SourceContext&); - SourceContext &operator= (const SourceContext& ); - public: SourceContext( DragSource* pSource, const Reference& listener); ~SourceContext(); + SourceContext(const SourceContext&) = delete; + SourceContext &operator= (const SourceContext&) = delete; virtual void SAL_CALL addDragSourceListener( const Reference& dsl ) throw( RuntimeException); -- cgit