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