delete copy constructors and assignment operators explicitly

This commit is contained in:
Garux
2021-03-24 15:48:29 +03:00
parent 6aa8e432f7
commit dc5dea6d21
10 changed files with 39 additions and 37 deletions

View File

@@ -120,12 +120,12 @@ void setGridPower( GridPower power );
class GridMenuItem
{
GridPower m_id;
GridMenuItem( const GridMenuItem& other ); // NOT COPYABLE
GridMenuItem& operator=( const GridMenuItem& other ); // NOT ASSIGNABLE
public:
ToggleItem m_item;
GridMenuItem( const GridMenuItem& other ) = delete; // NOT COPYABLE
GridMenuItem& operator=( const GridMenuItem& other ) = delete; // NOT ASSIGNABLE
GridMenuItem( GridPower id ) : m_id( id ), m_item( ExportCaller( *this ) ){
}
void set(){