summaryrefslogtreecommitdiffstats
path: root/src/Legend.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-27 17:57:38 +0100
committerDavid Robillard <d@drobilla.net>2020-11-27 21:42:51 +0100
commit34a5ca666a2dceb9eacc1087acb7bebf2f7e2758 (patch)
treeded0141c05fe09f6f2b91fd4176e1ace4153787b /src/Legend.hpp
parent6d5aca1fb1552ad791a59507ebbafcda7884cb6c (diff)
downloadpatchage-34a5ca666a2dceb9eacc1087acb7bebf2f7e2758.tar.gz
patchage-34a5ca666a2dceb9eacc1087acb7bebf2f7e2758.tar.bz2
patchage-34a5ca666a2dceb9eacc1087acb7bebf2f7e2758.zip
Use auto where appropriate
Diffstat (limited to 'src/Legend.hpp')
-rw-r--r--src/Legend.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Legend.hpp b/src/Legend.hpp
index 03d1e5b..b9e6b23 100644
--- a/src/Legend.hpp
+++ b/src/Legend.hpp
@@ -46,8 +46,8 @@ public:
col.set_rgb(((rgba >> 24) & 0xFF) * 0x100,
((rgba >> 16) & 0xFF) * 0x100,
((rgba >> 8) & 0xFF) * 0x100);
- Gtk::HBox* box = new Gtk::HBox();
- Gtk::ColorButton* but = new Gtk::ColorButton(col);
+ auto* box = new Gtk::HBox();
+ auto* but = new Gtk::ColorButton(col);
but->set_use_alpha(false);
but->signal_color_set().connect(sigc::bind(
sigc::mem_fun(this, &Legend::on_color_set), id, label, but));