mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 18:59: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:
@@ -9,6 +9,9 @@ class MixingView : public View
|
||||
{
|
||||
public:
|
||||
MixingView();
|
||||
// non assignable class
|
||||
MixingView(MixingView const&) = delete;
|
||||
MixingView& operator=(MixingView const&) = delete;
|
||||
|
||||
void draw () override;
|
||||
void update (float dt) override;
|
||||
|
||||
Reference in New Issue
Block a user