diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-05-24 17:27:38 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-05-24 20:44:25 +0000 |
commit | d5397bf17d1b2d268c1d5905079b69619ea0467a (patch) | |
tree | 9723e736e510f1ebeef408834bcb956e9b3393e7 /dtrans/source/win32/dnd/sourcecontext.hxx | |
parent | 68502698d29e577a7a451f1a796677128901cfe3 (diff) |
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 <j.nitschke+logerrit@ok.de>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'dtrans/source/win32/dnd/sourcecontext.hxx')
-rw-r--r-- | dtrans/source/win32/dnd/sourcecontext.hxx | 6 |
1 files changed, 2 insertions, 4 deletions
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<XDragSourceListener>& listener); ~SourceContext(); + SourceContext(const SourceContext&) = delete; + SourceContext &operator= (const SourceContext&) = delete; virtual void SAL_CALL addDragSourceListener( const Reference<XDragSourceListener >& dsl ) throw( RuntimeException); |