EditorComponent should have a reference, not pointer, to an Editor

the value is not allow to be null, and the coding style guide says in such cases to prefer
a reference.

No semantics change here, just the fact that all EditorComponents receive *this instead
of this when the Editor that owns them creates them
This commit is contained in:
Paul Davis 2025-05-14 11:50:30 -06:00
parent 94dbcaa7e2
commit 9494ecf6e9
15 changed files with 90 additions and 90 deletions

View file

@ -23,10 +23,10 @@ class Editor;
class EditorComponent
{
public:
EditorComponent (Editor *);
EditorComponent (Editor&);
virtual ~EditorComponent() {}
protected:
Editor* _editor;
Editor& _editor;
};