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

loplugin:deletedspecial

Change-Id: Id4f2e6cd7d689ac0b4688d92780b48d51427307a
üst f4479461
......@@ -34,7 +34,7 @@ class SVL_DLLPUBLIC SfxBroadcaster
private:
void AddListener( SfxListener& rListener );
void RemoveListener( SfxListener& rListener );
const SfxBroadcaster& operator=(const SfxBroadcaster &); // verboten
const SfxBroadcaster& operator=(const SfxBroadcaster &) SAL_DELETED_FUNCTION;
protected:
void Forward(SfxBroadcaster& rBC, const SfxHint& rHint);
......
......@@ -34,7 +34,7 @@ public:
typedef std::vector<SvtListener*> ListenersType;
private:
const SvtBroadcaster& operator=(const SvtBroadcaster &); // verboten
const SvtBroadcaster& operator=(const SvtBroadcaster &) SAL_DELETED_FUNCTION;
/**
* Ensure that the container doesn't contain any duplicated listener
......
......@@ -90,9 +90,8 @@ public:
sal_uInt32 Close( bool bSeekToEndOfRec = true );
private:
/// not implementend, not allowed
SfxMiniRecordWriter( const SfxMiniRecordWriter& );
SfxMiniRecordWriter& operator=(const SfxMiniRecordWriter&);
SfxMiniRecordWriter( const SfxMiniRecordWriter& ) SAL_DELETED_FUNCTION;
SfxMiniRecordWriter& operator=(const SfxMiniRecordWriter&) SAL_DELETED_FUNCTION;
};
/** Reads simple record from a stream
......@@ -264,9 +263,8 @@ public:
inline void Skip();
private:
/// not implementend, not allowed
SfxMiniRecordReader( const SfxMiniRecordReader& );
SfxMiniRecordReader& operator=(const SfxMiniRecordReader&);
SfxMiniRecordReader( const SfxMiniRecordReader& ) SAL_DELETED_FUNCTION;
SfxMiniRecordReader& operator=(const SfxMiniRecordReader&) SAL_DELETED_FUNCTION;
};
/**
......
......@@ -51,8 +51,8 @@ class SVL_DLLPUBLIC INetURLHistory : public SfxBroadcaster
/** Not implemented.
*/
SAL_DLLPRIVATE INetURLHistory (const INetURLHistory&);
SAL_DLLPRIVATE INetURLHistory& operator= (const INetURLHistory&);
INetURLHistory (const INetURLHistory&) SAL_DELETED_FUNCTION;
INetURLHistory& operator= (const INetURLHistory&) SAL_DELETED_FUNCTION;
public:
/** GetOrCreate.
......
......@@ -213,7 +213,7 @@ public:
static const SfxItemPool* GetStoringPool();
private:
const SfxItemPool& operator=(const SfxItemPool &); // n.i.!!
const SfxItemPool& operator=(const SfxItemPool &) SAL_DELETED_FUNCTION;
static const SfxItemPool* pStoringPool_;
};
......
......@@ -60,7 +60,7 @@ public:
SfxItemArray GetItems_Impl() const { return _aItems; }
private:
const SfxItemSet& operator=(const SfxItemSet &); // n.i.!!
const SfxItemSet& operator=(const SfxItemSet &) SAL_DELETED_FUNCTION;
protected:
// Notification-Callback
......
......@@ -31,7 +31,7 @@ class SVL_DLLPUBLIC SvtListener
typedef std::unordered_set<SvtBroadcaster*> BroadcastersType;
BroadcastersType maBroadcasters;
const SvtListener& operator=(const SvtListener &); // n.i., ist verboten
const SvtListener& operator=(const SvtListener &) SAL_DELETED_FUNCTION;
public:
class SVL_DLLPUBLIC QueryBase
......
......@@ -34,7 +34,7 @@ class SVL_DLLPUBLIC SfxListener
Impl* mpImpl;
private:
const SfxListener& operator=(const SfxListener &); // n.i., ist verboten
const SfxListener& operator=(const SfxListener &) SAL_DELETED_FUNCTION;
public:
TYPEINFO();
......
......@@ -151,7 +151,7 @@ private:
SvxMacroTableDtor aMacroTable;
inline SvxMacroItem( const SvxMacroItem& );
SvxMacroItem &operator=( const SvxMacroItem & );
SvxMacroItem &operator=( const SvxMacroItem & ) SAL_DELETED_FUNCTION;
};
inline SvxMacroItem::SvxMacroItem( const sal_uInt16 nId )
......
......@@ -197,7 +197,7 @@ public:
virtual void dumpAsXml(struct _xmlTextWriter* pWriter) const;
private:
SfxPoolItem& operator=( const SfxPoolItem& ); // not implemented!!
SfxPoolItem& operator=( const SfxPoolItem& ) SAL_DELETED_FUNCTION;
};
......@@ -260,7 +260,7 @@ inline bool IsInvalidItem(const SfxPoolItem *pItem)
class SVL_DLLPUBLIC SfxVoidItem: public SfxPoolItem
{
SfxVoidItem & operator=( const SfxVoidItem& ); // not implemented.
SfxVoidItem & operator=( const SfxVoidItem& ) SAL_DELETED_FUNCTION;
public:
TYPEINFO_OVERRIDE();
explicit SfxVoidItem( sal_uInt16 nWhich );
......@@ -287,7 +287,7 @@ class SVL_DLLPUBLIC SfxSetItem: public SfxPoolItem
{
SfxItemSet *pSet;
SfxSetItem & operator=( const SfxSetItem& ); // not implemented.
SfxSetItem & operator=( const SfxSetItem& ) SAL_DELETED_FUNCTION;
public:
TYPEINFO_OVERRIDE();
......
......@@ -29,9 +29,8 @@ class SVL_DLLPUBLIC SharedStringPool
struct Impl;
Impl* mpImpl;
SharedStringPool(); // disabled
SharedStringPool( const SharedStringPool& ); // disabled
SharedStringPool& operator=( const SharedStringPool& ); // disabled
SharedStringPool( const SharedStringPool& ) SAL_DELETED_FUNCTION;
SharedStringPool& operator=( const SharedStringPool& ) SAL_DELETED_FUNCTION;
public:
SharedStringPool( const CharClass* pCharClass );
......
......@@ -127,8 +127,8 @@ private:
friend class DdeInternal;
friend class DdeConnection;
DdeTransaction( const DdeTransaction& );
const DdeTransaction& operator= ( const DdeTransaction& );
DdeTransaction( const DdeTransaction& ) SAL_DELETED_FUNCTION;
const DdeTransaction& operator= ( const DdeTransaction& ) SAL_DELETED_FUNCTION;
};
......@@ -230,8 +230,8 @@ public:
const OUString GetTopicName();
private:
DdeConnection( const DdeConnection& );
const DdeConnection& operator= ( const DdeConnection& );
DdeConnection( const DdeConnection& ) SAL_DELETED_FUNCTION;
const DdeConnection& operator= ( const DdeConnection& ) SAL_DELETED_FUNCTION;
};
......@@ -344,8 +344,8 @@ public:
const std::vector<DdeItem*>& GetItems() const { return aItems; }
private:
DdeTopic( const DdeTopic& );
const DdeTopic& operator= ( const DdeTopic& );
DdeTopic( const DdeTopic& ) SAL_DELETED_FUNCTION;
const DdeTopic& operator= ( const DdeTopic& ) SAL_DELETED_FUNCTION;
};
......
......@@ -74,8 +74,8 @@ public:
virtual void dumpAsXml(struct _xmlTextWriter* pWriter) const;
private:
SfxUndoAction( const SfxUndoAction& ); // disabled
SfxUndoAction& operator=( const SfxUndoAction& ); // disabled
SfxUndoAction( const SfxUndoAction& ) SAL_DELETED_FUNCTION;
SfxUndoAction& operator=( const SfxUndoAction& ) SAL_DELETED_FUNCTION;
};
......
......@@ -232,10 +232,8 @@ class SVL_DLLPUBLIC NfCurrencyEntry
sal_uInt16 nDigits; /// count of decimal digits
sal_Unicode cZeroChar; /// which character is used for zeros as last decimal digits
/// not implemented, prevent usage
NfCurrencyEntry( const NfCurrencyEntry& );
/// not implemented, prevent usage
NfCurrencyEntry& operator=( const NfCurrencyEntry& );
NfCurrencyEntry( const NfCurrencyEntry& ) SAL_DELETED_FUNCTION;
NfCurrencyEntry& operator=( const NfCurrencyEntry& ) SAL_DELETED_FUNCTION;
private:
......
......@@ -104,16 +104,6 @@ DdeTransaction::DdeTransaction( DdeConnection& rConnection, const OUString&, lon
{
}
DdeTransaction::DdeTransaction( const DdeTransaction& rTransaction )
: rDde( rTransaction.rDde )
, pName(NULL)
, nType(0)
, nId(0)
, nTime(0)
, bBusy(false)
{
}
void DdeTransaction::Execute()
{
}
......
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