diff options
author | David Robillard <d@drobilla.net> | 2022-12-13 20:05:36 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-12-14 18:04:27 -0500 |
commit | 1ec4ef7972bf28dbca9ee3503a3dcc688ed74157 (patch) | |
tree | 497bb36360ec9a7e1b18b7e3b3e64f57cb85f8f8 /src | |
parent | 5d6ab4915c3b93f534c45bb6f84bf3273221e87c (diff) | |
download | ingen-1ec4ef7972bf28dbca9ee3503a3dcc688ed74157.tar.gz ingen-1ec4ef7972bf28dbca9ee3503a3dcc688ed74157.tar.bz2 ingen-1ec4ef7972bf28dbca9ee3503a3dcc688ed74157.zip |
Avoid public member variables in classes
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/ingen_gui_lv2.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/ingen_gui_lv2.cpp b/src/gui/ingen_gui_lv2.cpp index d80d92c0..31ec22c5 100644 --- a/src/gui/ingen_gui_lv2.cpp +++ b/src/gui/ingen_gui_lv2.cpp @@ -49,7 +49,8 @@ namespace ingen { /** A sink that writes atoms to a port via the UI extension. */ -struct IngenLV2AtomSink : public AtomSink { +class IngenLV2AtomSink : public AtomSink { +public: IngenLV2AtomSink(URIs& uris, LV2UI_Write_Function ui_write, LV2UI_Controller ui_controller) @@ -67,14 +68,13 @@ struct IngenLV2AtomSink : public AtomSink { return true; } +private: URIs& _uris; LV2UI_Write_Function _ui_write; LV2UI_Controller _ui_controller; }; struct IngenLV2UI { - IngenLV2UI() = default; - int argc{0}; char** argv{nullptr}; Forge* forge{nullptr}; |