mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 05:35:47 +01:00
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:
parent
94dbcaa7e2
commit
9494ecf6e9
15 changed files with 90 additions and 90 deletions
|
|
@ -23,10 +23,10 @@ class Editor;
|
|||
class EditorComponent
|
||||
{
|
||||
public:
|
||||
EditorComponent (Editor *);
|
||||
EditorComponent (Editor&);
|
||||
virtual ~EditorComponent() {}
|
||||
|
||||
protected:
|
||||
Editor* _editor;
|
||||
Editor& _editor;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue