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