diff options
author | David Robillard <d@drobilla.net> | 2019-12-29 19:33:28 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-12-29 19:33:28 -0500 |
commit | 7bbcd8405b0e9d04c74be1f13d1b54f3f72e7c7d (patch) | |
tree | f2ca01600742d60bacdfb1a2a94ec0a3c5e99d51 /src/Widget.hpp | |
parent | 668265fb608430bf968044404ba70f45a0d56033 (diff) | |
download | patchage-7bbcd8405b0e9d04c74be1f13d1b54f3f72e7c7d.tar.gz patchage-7bbcd8405b0e9d04c74be1f13d1b54f3f72e7c7d.tar.bz2 patchage-7bbcd8405b0e9d04c74be1f13d1b54f3f72e7c7d.zip |
Remove use of boost/utility.hpp
Diffstat (limited to 'src/Widget.hpp')
-rw-r--r-- | src/Widget.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Widget.hpp b/src/Widget.hpp index 038f880..f1c935f 100644 --- a/src/Widget.hpp +++ b/src/Widget.hpp @@ -19,17 +19,18 @@ #include <string> -#include <boost/utility.hpp> - #include <gtkmm/builder.h> template <typename W> -class Widget : public boost::noncopyable { +class Widget { public: Widget(Glib::RefPtr<Gtk::Builder> xml, const std::string& name) { xml->get_widget(name, _me); } + Widget(const Widget&) = delete; + Widget& operator=(const Widget&) = delete; + void destroy() { delete _me; } W* get() { return _me; } |