Kaydet (Commit) f862290c authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:deletedspecial

Change-Id: Ia503ee8012ca9a2a6128c657961176968073f37f
üst cf0448b9
...@@ -222,8 +222,8 @@ class SVT_DLLPUBLIC AcceleratorExecute : private TMutexInit ...@@ -222,8 +222,8 @@ class SVT_DLLPUBLIC AcceleratorExecute : private TMutexInit
*/ */
SVT_DLLPRIVATE AcceleratorExecute(); SVT_DLLPRIVATE AcceleratorExecute();
AcceleratorExecute(const AcceleratorExecute& rCopy); AcceleratorExecute(const AcceleratorExecute& rCopy) SAL_DELETED_FUNCTION;
void operator=(const AcceleratorExecute&) {}; void operator=(const AcceleratorExecute&) SAL_DELETED_FUNCTION;
/** TODO document me */ /** TODO document me */
SVT_DLLPRIVATE OUString impl_ts_findCommand(const css::awt::KeyEvent& aKey); SVT_DLLPRIVATE OUString impl_ts_findCommand(const css::awt::KeyEvent& aKey);
......
...@@ -34,14 +34,10 @@ namespace svt ...@@ -34,14 +34,10 @@ namespace svt
/** helper class for obtaining streams (which also can be used with the ImageProducer) /** helper class for obtaining streams (which also can be used with the ImageProducer)
from a resource from a resource
*/ */
class BindableControlHelper namespace BindableControlHelper
{ {
private: SVT_DLLPUBLIC void ApplyListSourceAndBindableData( const com::sun::star::uno::Reference< com::sun::star::frame::XModel >& xModel, const com::sun::star::uno::Reference< com::sun::star::uno::XInterface >& rObj, const OUString& rsCtrlSource, const OUString& rsRowSource, sal_uInt16 nRefTab = 0 );
BindableControlHelper(); // never implemented }
public:
SVT_DLLPUBLIC static void ApplyListSourceAndBindableData( const com::sun::star::uno::Reference< com::sun::star::frame::XModel >& xModel, const com::sun::star::uno::Reference< com::sun::star::uno::XInterface >& rObj, const OUString& rsCtrlSource, const OUString& rsRowSource, sal_uInt16 nRefTab = 0 );
};
} // namespace svt } // namespace svt
......
...@@ -65,9 +65,8 @@ class SVT_DLLPUBLIC ContextMenuHelper ...@@ -65,9 +65,8 @@ class SVT_DLLPUBLIC ContextMenuHelper
// asynchronous link to prevent destruction while on stack // asynchronous link to prevent destruction while on stack
DECL_STATIC_LINK( ContextMenuHelper, ExecuteHdl_Impl, ExecuteInfo* ); DECL_STATIC_LINK( ContextMenuHelper, ExecuteHdl_Impl, ExecuteInfo* );
// no copy-ctor and operator= ContextMenuHelper( const ContextMenuHelper& ) SAL_DELETED_FUNCTION;
ContextMenuHelper( const ContextMenuHelper& ); const ContextMenuHelper& operator=( const ContextMenuHelper& ) SAL_DELETED_FUNCTION;
const ContextMenuHelper& operator=( const ContextMenuHelper& );
// show context menu and dispatch command automatically // show context menu and dispatch command automatically
void executePopupMenu( const Point& aPos, PopupMenu* pMenu ); void executePopupMenu( const Point& aPos, PopupMenu* pMenu );
...@@ -99,7 +98,6 @@ class SVT_DLLPUBLIC ContextMenuHelper ...@@ -99,7 +98,6 @@ class SVT_DLLPUBLIC ContextMenuHelper
} }
::com::sun::star::uno::WeakReference< ::com::sun::star::frame::XFrame > m_xWeakFrame; ::com::sun::star::uno::WeakReference< ::com::sun::star::frame::XFrame > m_xWeakFrame;
OUString m_aModuleIdentifier;
OUString m_aSelf; OUString m_aSelf;
::com::sun::star::uno::Reference< ::com::sun::star::util::XURLTransformer > m_xURLTransformer; ::com::sun::star::uno::Reference< ::com::sun::star::util::XURLTransformer > m_xURLTransformer;
::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > m_aDefaultArgs; ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > m_aDefaultArgs;
......
...@@ -198,9 +198,8 @@ public: ...@@ -198,9 +198,8 @@ public:
} }
private: private:
// declared as private because some compilers would generate the default functions ColorListBox( const ColorListBox& ) SAL_DELETED_FUNCTION;
ColorListBox( const ColorListBox& ); ColorListBox& operator =( const ColorListBox& ) SAL_DELETED_FUNCTION;
ColorListBox& operator =( const ColorListBox& );
void SetEntryData( sal_Int32 nPos, void* pNewData ); void SetEntryData( sal_Int32 nPos, void* pNewData );
void* GetEntryData( sal_Int32 nPos ) const; void* GetEntryData( sal_Int32 nPos ) const;
...@@ -359,9 +358,8 @@ protected: ...@@ -359,9 +358,8 @@ protected:
Color GetColorDist( sal_Int32 nPos = 0 ); Color GetColorDist( sal_Int32 nPos = 0 );
private: private:
// declared as private because some compilers would generate the default methods LineListBox( const LineListBox& ) SAL_DELETED_FUNCTION;
LineListBox( const LineListBox& ); LineListBox& operator =( const LineListBox& ) SAL_DELETED_FUNCTION;
LineListBox& operator =( const LineListBox& );
void SetEntryData( sal_Int32 nPos, void* pNewData ); void SetEntryData( sal_Int32 nPos, void* pNewData );
void* GetEntryData( sal_Int32 nPos ) const; void* GetEntryData( sal_Int32 nPos ) const;
}; };
...@@ -418,9 +416,8 @@ public: ...@@ -418,9 +416,8 @@ public:
private: private:
void InitFontMRUEntriesFile(); void InitFontMRUEntriesFile();
// declared as private because some compilers would generate the default functions FontNameBox( const FontNameBox& ) SAL_DELETED_FUNCTION;
FontNameBox( const FontNameBox& ); FontNameBox& operator =( const FontNameBox& ) SAL_DELETED_FUNCTION;
FontNameBox& operator =( const FontNameBox& );
}; };
class SVT_DLLPUBLIC FontStyleBox : public ComboBox class SVT_DLLPUBLIC FontStyleBox : public ComboBox
...@@ -444,9 +441,8 @@ public: ...@@ -444,9 +441,8 @@ public:
void Fill( const OUString& rName, const FontList* pList ); void Fill( const OUString& rName, const FontList* pList );
private: private:
// declared as private because some compilers would generate the default functions FontStyleBox( const FontStyleBox& ) SAL_DELETED_FUNCTION;
FontStyleBox( const FontStyleBox& ); FontStyleBox& operator =( const FontStyleBox& ) SAL_DELETED_FUNCTION;
FontStyleBox& operator =( const FontStyleBox& );
}; };
inline void FontStyleBox::SetText( const OUString& rText ) inline void FontStyleBox::SetText( const OUString& rText )
...@@ -502,9 +498,8 @@ public: ...@@ -502,9 +498,8 @@ public:
virtual sal_Int64 GetValue() const SAL_OVERRIDE; virtual sal_Int64 GetValue() const SAL_OVERRIDE;
private: private:
// declared as private because some compilers would generate the default functions FontSizeBox( const FontSizeBox& ) SAL_DELETED_FUNCTION;
FontSizeBox( const FontSizeBox& ); FontSizeBox& operator =( const FontSizeBox& ) SAL_DELETED_FUNCTION;
FontSizeBox& operator =( const FontSizeBox& );
}; };
#endif // INCLUDED_SVTOOLS_CTRLBOX_HXX #endif // INCLUDED_SVTOOLS_CTRLBOX_HXX
......
...@@ -137,7 +137,6 @@ private: ...@@ -137,7 +137,6 @@ private:
OUString maMapBoth; OUString maMapBoth;
OUString maMapPrinterOnly; OUString maMapPrinterOnly;
OUString maMapScreenOnly; OUString maMapScreenOnly;
OUString maMapSizeNotAvailable;
OUString maMapStyleNotAvailable; OUString maMapStyleNotAvailable;
mutable OUString maMapNotAvailable; mutable OUString maMapNotAvailable;
OUString maLight; OUString maLight;
...@@ -197,8 +196,8 @@ public: ...@@ -197,8 +196,8 @@ public:
static const sal_IntPtr* GetStdSizeAry(); static const sal_IntPtr* GetStdSizeAry();
private: private:
FontList( const FontList& ); FontList( const FontList& ) SAL_DELETED_FUNCTION;
FontList& operator =( const FontList& ); FontList& operator =( const FontList& ) SAL_DELETED_FUNCTION;
}; };
class SVT_DLLPUBLIC FontSizeNames class SVT_DLLPUBLIC FontSizeNames
......
...@@ -120,8 +120,8 @@ namespace svt ...@@ -120,8 +120,8 @@ namespace svt
DECL_LINK( OnWindowEvent, const VclWindowEvent* ); DECL_LINK( OnWindowEvent, const VclWindowEvent* );
private: private:
DialogController( const DialogController& ); // never implemented DialogController( const DialogController& ) SAL_DELETED_FUNCTION;
DialogController& operator=( const DialogController& ); // never implemented DialogController& operator=( const DialogController& ) SAL_DELETED_FUNCTION;
}; };
typedef ::boost::shared_ptr< DialogController > PDialogController; typedef ::boost::shared_ptr< DialogController > PDialogController;
...@@ -181,8 +181,8 @@ namespace svt ...@@ -181,8 +181,8 @@ namespace svt
void addController( const PDialogController& _pController ); void addController( const PDialogController& _pController );
private: private:
ControlDependencyManager( const ControlDependencyManager& ); // never implemented ControlDependencyManager( const ControlDependencyManager& ) SAL_DELETED_FUNCTION;
ControlDependencyManager& operator=( const ControlDependencyManager& ); // never implemented ControlDependencyManager& operator=( const ControlDependencyManager& ) SAL_DELETED_FUNCTION;
}; };
......
...@@ -445,9 +445,8 @@ namespace svt ...@@ -445,9 +445,8 @@ namespace svt
}; };
private: private:
// forbid these ones EditBrowseBox(EditBrowseBox&) SAL_DELETED_FUNCTION;
EditBrowseBox(EditBrowseBox&); EditBrowseBox& operator=(EditBrowseBox&) SAL_DELETED_FUNCTION;
EditBrowseBox& operator=(EditBrowseBox&);
class BrowserMouseEventPtr class BrowserMouseEventPtr
{ {
......
...@@ -50,7 +50,7 @@ class SVT_DLLPUBLIC EmbeddedObjectRef ...@@ -50,7 +50,7 @@ class SVT_DLLPUBLIC EmbeddedObjectRef
SVT_DLLPRIVATE SvStream* GetGraphicStream( bool bUpdate ) const; SVT_DLLPRIVATE SvStream* GetGraphicStream( bool bUpdate ) const;
SVT_DLLPRIVATE void GetReplacement( bool bUpdate ); SVT_DLLPRIVATE void GetReplacement( bool bUpdate );
EmbeddedObjectRef& operator = ( const EmbeddedObjectRef& ); EmbeddedObjectRef& operator = ( const EmbeddedObjectRef& ) SAL_DELETED_FUNCTION;
public: public:
static void DrawPaintReplacement( const Rectangle &rRect, const OUString &rText, OutputDevice *pOut ); static void DrawPaintReplacement( const Rectangle &rRect, const OUString &rText, OutputDevice *pOut );
......
...@@ -37,16 +37,12 @@ namespace svt ...@@ -37,16 +37,12 @@ namespace svt
/** helper class for obtaining streams (which also can be used with the ImageProducer) /** helper class for obtaining streams (which also can be used with the ImageProducer)
from a resource from a resource
*/ */
class GraphicAccess namespace GraphicAccess
{ {
private:
GraphicAccess(); // never implemented
public:
/** determines whether the given URL denotes an image within a resource /** determines whether the given URL denotes an image within a resource
( or an image specified by a vnd.sun.star.GraphicObject scheme URL ) ( or an image specified by a vnd.sun.star.GraphicObject scheme URL )
*/ */
SVT_DLLPUBLIC static bool isSupportedURL( const OUString& _rURL ); SVT_DLLPUBLIC bool isSupportedURL( const OUString& _rURL );
/** for a given URL of an image within a resource ( or an image specified by a vnd.sun.star.GraphicObject scheme URL ), this method retrieves /** for a given URL of an image within a resource ( or an image specified by a vnd.sun.star.GraphicObject scheme URL ), this method retrieves
an SvStream for this image. an SvStream for this image.
...@@ -57,7 +53,7 @@ namespace svt ...@@ -57,7 +53,7 @@ namespace svt
the image must be copied), so you are strongly encouraged to only use it the image must be copied), so you are strongly encouraged to only use it
when you know that the image is small enough. when you know that the image is small enough.
*/ */
SVT_DLLPUBLIC static SvStream* getImageStream( SVT_DLLPUBLIC SvStream* getImageStream(
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext,
const OUString& _rImageResourceURL const OUString& _rImageResourceURL
); );
...@@ -65,12 +61,12 @@ namespace svt ...@@ -65,12 +61,12 @@ namespace svt
/** for a given URL of an image within a resource ( or an image specified by a vnd.sun.star.GraphicObject scheme URL ), this method retrieves /** for a given URL of an image within a resource ( or an image specified by a vnd.sun.star.GraphicObject scheme URL ), this method retrieves
an com::sun::star::io::XInputStream for this image. an com::sun::star::io::XInputStream for this image.
*/ */
SVT_DLLPUBLIC static ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > SVT_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >
getImageXStream( getImageXStream(
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext,
const OUString& _rImageResourceURL const OUString& _rImageResourceURL
); );
}; }
} // namespace svt } // namespace svt
......
...@@ -63,9 +63,8 @@ namespace svt ...@@ -63,9 +63,8 @@ namespace svt
throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
private: private:
SVT_DLLPRIVATE JavaContext(); //not implemented JavaContext(JavaContext&) SAL_DELETED_FUNCTION;
SVT_DLLPRIVATE JavaContext(JavaContext&); //not implemented JavaContext& operator = (JavaContext&) SAL_DELETED_FUNCTION;
SVT_DLLPRIVATE JavaContext& operator = (JavaContext&); //not implemented
oslInterlockedCount m_aRefCount; oslInterlockedCount m_aRefCount;
......
...@@ -57,8 +57,8 @@ public: ...@@ -57,8 +57,8 @@ public:
private: private:
oslInterlockedCount m_aRefCount; oslInterlockedCount m_aRefCount;
SVT_DLLPRIVATE JavaInteractionHandler(JavaInteractionHandler const&); //not implemented JavaInteractionHandler(JavaInteractionHandler const&) SAL_DELETED_FUNCTION;
SVT_DLLPRIVATE JavaInteractionHandler& operator = (JavaInteractionHandler const &); //not implemented JavaInteractionHandler& operator = (JavaInteractionHandler const &) SAL_DELETED_FUNCTION;
SVT_DLLPRIVATE virtual ~JavaInteractionHandler(); SVT_DLLPRIVATE virtual ~JavaInteractionHandler();
bool m_bShowErrorsOnce; bool m_bShowErrorsOnce;
bool m_bJavaDisabled_Handled; bool m_bJavaDisabled_Handled;
......
...@@ -719,9 +719,8 @@ private: ...@@ -719,9 +719,8 @@ private:
DECL_DLLPRIVATE_LINK( ImplUpdateHdl, void* ); DECL_DLLPRIVATE_LINK( ImplUpdateHdl, void* );
// Forbidden and not implemented. Ruler (const Ruler &) SAL_DELETED_FUNCTION;
Ruler (const Ruler &); Ruler& operator= (const Ruler &) SAL_DELETED_FUNCTION;
Ruler& operator= (const Ruler &);
protected: protected:
long GetRulerVirHeight() const { return mnVirHeight;} long GetRulerVirHeight() const { return mnVirHeight;}
......
...@@ -41,8 +41,7 @@ class SVT_DLLPUBLIC SvtScriptedTextHelper ...@@ -41,8 +41,7 @@ class SVT_DLLPUBLIC SvtScriptedTextHelper
private: private:
SvtScriptedTextHelper_Impl* mpImpl; /// Implementation of class functionality. SvtScriptedTextHelper_Impl* mpImpl; /// Implementation of class functionality.
/** Assignment operator not implemented to prevent usage. */ SvtScriptedTextHelper& operator=( const SvtScriptedTextHelper& ) SAL_DELETED_FUNCTION;
SvtScriptedTextHelper& operator=( const SvtScriptedTextHelper& );
public: public:
/** Constructor sets an output device and no fonts. /** Constructor sets an output device and no fonts.
......
...@@ -406,10 +406,8 @@ private: ...@@ -406,10 +406,8 @@ private:
::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDragGestureRecognizer > mxDragGestureRecognizer; ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDragGestureRecognizer > mxDragGestureRecognizer;
::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDragGestureListener > mxDragGestureListener; ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDragGestureListener > mxDragGestureListener;
// not available DragSourceHelper& operator=( const DragSourceHelper& rDragSourceHelper ) SAL_DELETED_FUNCTION;
DragSourceHelper(); bool operator==( const DragSourceHelper& rDragSourceHelper ) const SAL_DELETED_FUNCTION;
DragSourceHelper& operator=( const DragSourceHelper& rDragSourceHelper );
bool operator==( const DragSourceHelper& rDragSourceHelper ) const;
public: public:
...@@ -458,10 +456,9 @@ private: ...@@ -458,10 +456,9 @@ private:
::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDropTargetListener > mxDropTargetListener; ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDropTargetListener > mxDropTargetListener;
DataFlavorExVector* mpFormats; DataFlavorExVector* mpFormats;
// not available DropTargetHelper() SAL_DELETED_FUNCTION;
DropTargetHelper(); DropTargetHelper& operator=( const DropTargetHelper& rDropTargetHelper ) SAL_DELETED_FUNCTION;
DropTargetHelper& operator=( const DropTargetHelper& rDropTargetHelper ); bool operator==( const DropTargetHelper& rDropTargetHelper ) const SAL_DELETED_FUNCTION;
bool operator==( const DropTargetHelper& rDropTargetHelper ) const;
void ImplConstruct(); void ImplConstruct();
......
...@@ -128,8 +128,8 @@ class SVT_DLLPUBLIC SvTreeList ...@@ -128,8 +128,8 @@ class SVT_DLLPUBLIC SvTreeList
SVT_DLLPRIVATE void ResortChildren( SvTreeListEntry* pParent ); SVT_DLLPRIVATE void ResortChildren( SvTreeListEntry* pParent );
SVT_DLLPRIVATE void ReverseChildren( SvTreeListEntry* pParent ); SVT_DLLPRIVATE void ReverseChildren( SvTreeListEntry* pParent );
SvTreeList(const SvTreeList&); // disabled SvTreeList(const SvTreeList&) SAL_DELETED_FUNCTION;
SvTreeList& operator= (const SvTreeList&); // disabled SvTreeList& operator= (const SvTreeList&) SAL_DELETED_FUNCTION;
protected: protected:
SvTreeListEntry* pRootItem; SvTreeListEntry* pRootItem;
......
...@@ -270,9 +270,8 @@ private: ...@@ -270,9 +270,8 @@ private:
DECL_DLLPRIVATE_LINK( ImplScrollHdl, ScrollBar* ); DECL_DLLPRIVATE_LINK( ImplScrollHdl, ScrollBar* );
DECL_DLLPRIVATE_LINK( ImplTimerHdl, void* ); DECL_DLLPRIVATE_LINK( ImplTimerHdl, void* );
// Forbidden and not implemented. ValueSet (const ValueSet &) SAL_DELETED_FUNCTION;
ValueSet (const ValueSet &); ValueSet & operator= (const ValueSet &) SAL_DELETED_FUNCTION;
ValueSet & operator= (const ValueSet &);
protected: protected:
......
...@@ -35,8 +35,7 @@ class SVT_DLLPUBLIC XWindowItem : public SfxPoolItem ...@@ -35,8 +35,7 @@ class SVT_DLLPUBLIC XWindowItem : public SfxPoolItem
{ {
::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > m_xWin; ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > m_xWin;
// disallow use assignment operator XWindowItem & operator = ( const XWindowItem & ) SAL_DELETED_FUNCTION;
XWindowItem & operator = ( const XWindowItem & );
public: public:
TYPEINFO_OVERRIDE(); TYPEINFO_OVERRIDE();
......
...@@ -204,9 +204,8 @@ namespace svt { namespace table ...@@ -204,9 +204,8 @@ namespace svt { namespace table
DECL_DLLPRIVATE_LINK( ImplSelectHdl, void* ); DECL_DLLPRIVATE_LINK( ImplSelectHdl, void* );
private: private:
TableControl(); // never implemented TableControl( const TableControl& ) SAL_DELETED_FUNCTION;
TableControl( const TableControl& ); // never implemented TableControl& operator=( const TableControl& ) SAL_DELETED_FUNCTION;
TableControl& operator=( const TableControl& ); // never implemented
}; };
......
...@@ -112,9 +112,9 @@ private: ...@@ -112,9 +112,9 @@ private:
bool mbAlpha; bool mbAlpha;
bool mbAnimated; bool mbAnimated;
GraphicDescriptor( const GraphicDescriptor& rDescriptor ); GraphicDescriptor( const GraphicDescriptor& rDescriptor ) SAL_DELETED_FUNCTION;
GraphicDescriptor& operator=( const GraphicDescriptor& ); GraphicDescriptor& operator=( const GraphicDescriptor& ) SAL_DELETED_FUNCTION;
void implCreate( SvStream& rIStm, const OUString* pPath ); void implCreate( SvStream& rIStm, const OUString* pPath );
}; };
......
...@@ -82,16 +82,6 @@ AcceleratorExecute::AcceleratorExecute() ...@@ -82,16 +82,6 @@ AcceleratorExecute::AcceleratorExecute()
{ {
} }
AcceleratorExecute::AcceleratorExecute(const AcceleratorExecute&)
: TMutexInit ( )
, m_aAsyncCallback(LINK(this, AcceleratorExecute, impl_ts_asyncCallback))
{
// copy construction sint supported in real ...
// but we need this ctor to init our async callback ...
}
AcceleratorExecute::~AcceleratorExecute() AcceleratorExecute::~AcceleratorExecute()
{ {
// does nothing real // does nothing real
......
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