delete copy constructors and assignment operators explicitly
This commit is contained in:
@@ -289,10 +289,10 @@ private:
|
||||
void size_decrement(){
|
||||
--m_size;
|
||||
}
|
||||
|
||||
HashTable( const HashTable& other );
|
||||
HashTable& operator=( const HashTable& other );
|
||||
public:
|
||||
HashTable( const HashTable& other ) = delete; // not copyable
|
||||
HashTable& operator=( const HashTable& other ) = delete; // not assignable
|
||||
|
||||
HashTable() : m_bucketCount( 0 ), m_buckets( 0 ), m_size( 0 ){
|
||||
initialise();
|
||||
}
|
||||
|
||||
@@ -81,9 +81,6 @@ class ToggleShown
|
||||
{
|
||||
bool m_shownDeferred;
|
||||
|
||||
ToggleShown( const ToggleShown& other ); // NOT COPYABLE
|
||||
ToggleShown& operator=( const ToggleShown& other ); // NOT ASSIGNABLE
|
||||
|
||||
static gboolean notify_visible( GtkWidget* widget, gpointer dummy, ToggleShown* self ){
|
||||
/* destroy = notify::visible with visible = 0, thus let's filter it out */
|
||||
if( gtk_main_level() > 0 ){ //== 0 at destroy time
|
||||
@@ -103,6 +100,9 @@ public:
|
||||
GtkWidget* m_widget;
|
||||
ToggleItem m_item;
|
||||
|
||||
ToggleShown( const ToggleShown& other ) = delete; // NOT COPYABLE
|
||||
ToggleShown& operator=( const ToggleShown& other ) = delete; // NOT ASSIGNABLE
|
||||
|
||||
ToggleShown( bool shown )
|
||||
: m_shownDeferred( shown ), m_widget( 0 ), m_item( ActiveCaller( *this ) ){
|
||||
}
|
||||
|
||||
@@ -34,12 +34,13 @@ struct RGBAPixel
|
||||
|
||||
class RGBAImage : public Image
|
||||
{
|
||||
RGBAImage( const RGBAImage& other );
|
||||
RGBAImage& operator=( const RGBAImage& other );
|
||||
public:
|
||||
RGBAPixel* pixels;
|
||||
unsigned int width, height;
|
||||
|
||||
RGBAImage( const RGBAImage& other ) = delete; // not copyable
|
||||
RGBAImage& operator=( const RGBAImage& other ) = delete; // not assignable
|
||||
|
||||
RGBAImage( unsigned int _width, unsigned int _height )
|
||||
: pixels( new RGBAPixel[_width * _height] ), width( _width ), height( _height ){
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user