mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 10:49:59 +01:00
Making classes non-assignable
Following CppCheck recomendation, all classes that should not be manipulated by value are made non-assignable to ensure no mistake is made.
This commit is contained in:
@@ -7,6 +7,9 @@ class LayerView : public View
|
||||
{
|
||||
public:
|
||||
LayerView();
|
||||
// non assignable class
|
||||
LayerView(LayerView const&) = delete;
|
||||
LayerView& operator=(LayerView const&) = delete;
|
||||
|
||||
void draw () override;
|
||||
void update (float dt) override;
|
||||
|
||||
Reference in New Issue
Block a user