Kaydet (Commit) d5397bf1 authored tarafından Jochen Nitschke's avatar Jochen Nitschke Kaydeden (comit) Michael Stahl

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/25411Tested-by: 's avatarJochen Nitschke <j.nitschke+logerrit@ok.de>
Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst 68502698
...@@ -57,10 +57,6 @@ class DragSource: ...@@ -57,10 +57,6 @@ class DragSource:
// The mouse button that set off the drag and drop operation // The mouse button that set off the drag and drop operation
short m_MouseButton; short m_MouseButton;
DragSource();
DragSource(const DragSource&);
DragSource &operator= ( const DragSource&);
// First starting a new drag and drop thread if // First starting a new drag and drop thread if
// the last one has finished // the last one has finished
void StartDragImpl( void StartDragImpl(
...@@ -89,6 +85,8 @@ public: ...@@ -89,6 +85,8 @@ public:
public: public:
explicit DragSource(const Reference<XComponentContext>& rxContext); explicit DragSource(const Reference<XComponentContext>& rxContext);
virtual ~DragSource(); virtual ~DragSource();
DragSource(const DragSource&) = delete;
DragSource &operator= ( const DragSource&) = delete;
// XInitialization // XInitialization
virtual void SAL_CALL initialize( const Sequence< Any >& aArguments ) virtual void SAL_CALL initialize( const Sequence< Any >& aArguments )
......
...@@ -44,13 +44,11 @@ class SourceContext: public MutexDummy, ...@@ -44,13 +44,11 @@ class SourceContext: public MutexDummy,
// the action ( copy, move etc) // the action ( copy, move etc)
sal_Int8 m_currentAction; sal_Int8 m_currentAction;
SourceContext();
SourceContext( const SourceContext&);
SourceContext &operator= (const SourceContext& );
public: public:
SourceContext( DragSource* pSource, const Reference<XDragSourceListener>& listener); SourceContext( DragSource* pSource, const Reference<XDragSourceListener>& listener);
~SourceContext(); ~SourceContext();
SourceContext(const SourceContext&) = delete;
SourceContext &operator= (const SourceContext&) = delete;
virtual void SAL_CALL addDragSourceListener( const Reference<XDragSourceListener >& dsl ) virtual void SAL_CALL addDragSourceListener( const Reference<XDragSourceListener >& dsl )
throw( RuntimeException); throw( RuntimeException);
......
...@@ -106,14 +106,11 @@ private: ...@@ -106,14 +106,11 @@ private:
Reference<XDropTargetDragContext> m_currentDragContext; Reference<XDropTargetDragContext> m_currentDragContext;
Reference<XDropTargetDropContext> m_currentDropContext; Reference<XDropTargetDropContext> m_currentDropContext;
private:
DropTarget();
DropTarget(DropTarget&);
DropTarget &operator= (DropTarget&);
public: public:
explicit DropTarget(const Reference<XComponentContext>& rxContext); explicit DropTarget(const Reference<XComponentContext>& rxContext);
virtual ~DropTarget(); virtual ~DropTarget();
DropTarget(DropTarget&) = delete;
DropTarget &operator= (DropTarget&) = delete;
// Overrides WeakComponentImplHelper::disposing which is called by // Overrides WeakComponentImplHelper::disposing which is called by
// WeakComponentImplHelper::dispose // WeakComponentImplHelper::dispose
......
...@@ -37,12 +37,11 @@ class TargetDragContext: public WeakImplHelper<XDropTargetDragContext> ...@@ -37,12 +37,11 @@ class TargetDragContext: public WeakImplHelper<XDropTargetDragContext>
// to non-interface functions of m_pDropTarget // to non-interface functions of m_pDropTarget
DropTarget* m_pDropTarget; DropTarget* m_pDropTarget;
TargetDragContext();
TargetDragContext( const TargetDragContext&);
TargetDragContext &operator= ( const TargetDragContext&);
public: public:
explicit TargetDragContext(DropTarget* pTarget); explicit TargetDragContext(DropTarget* pTarget);
~TargetDragContext(); ~TargetDragContext();
TargetDragContext( const TargetDragContext&) = delete;
TargetDragContext &operator= ( const TargetDragContext&) = delete;
virtual void SAL_CALL acceptDrag( sal_Int8 dragOperation ) virtual void SAL_CALL acceptDrag( sal_Int8 dragOperation )
throw( RuntimeException); throw( RuntimeException);
......
...@@ -36,12 +36,11 @@ class TargetDropContext: public WeakImplHelper<XDropTargetDropContext> ...@@ -36,12 +36,11 @@ class TargetDropContext: public WeakImplHelper<XDropTargetDropContext>
// to non-interface functions of m_pDropTarget // to non-interface functions of m_pDropTarget
DropTarget* m_pDropTarget; DropTarget* m_pDropTarget;
TargetDropContext();
TargetDropContext( const TargetDropContext&);
TargetDropContext &operator= ( const TargetDropContext&);
public: public:
explicit TargetDropContext(DropTarget* pTarget); explicit TargetDropContext(DropTarget* pTarget);
~TargetDropContext(); ~TargetDropContext();
TargetDropContext( const TargetDropContext&) = delete;
TargetDropContext &operator= ( const TargetDropContext&) = delete;
// XDropTargetDragContext // XDropTargetDragContext
virtual void SAL_CALL acceptDrop( sal_Int8 dropOperation ) virtual void SAL_CALL acceptDrop( sal_Int8 dropOperation )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment