diff options
author | David Robillard <d@drobilla.net> | 2021-01-02 14:02:44 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-01-02 14:02:44 +0100 |
commit | 663a5d01b1931b97370ed8feff3ae229a9cc7ea4 (patch) | |
tree | aba74794cb45f06734bd80bbf53d79f947008e54 /src/Widget.hpp | |
parent | 1936aace80b5594078d874e9b661a9a91e461279 (diff) | |
download | patchage-663a5d01b1931b97370ed8feff3ae229a9cc7ea4.tar.gz patchage-663a5d01b1931b97370ed8feff3ae229a9cc7ea4.tar.bz2 patchage-663a5d01b1931b97370ed8feff3ae229a9cc7ea4.zip |
Format all code with clang-format
Diffstat (limited to 'src/Widget.hpp')
-rw-r--r-- | src/Widget.hpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/Widget.hpp b/src/Widget.hpp index 19f9816..3d13b91 100644 --- a/src/Widget.hpp +++ b/src/Widget.hpp @@ -28,30 +28,30 @@ template<typename W> class Widget { public: - Widget(const Glib::RefPtr<Gtk::Builder>& xml, const std::string& name) - { - xml->get_widget(name, _me); - } + Widget(const Glib::RefPtr<Gtk::Builder>& xml, const std::string& name) + { + xml->get_widget(name, _me); + } - Widget(const Widget&) = delete; - Widget& operator=(const Widget&) = delete; + Widget(const Widget&) = delete; + Widget& operator=(const Widget&) = delete; - Widget(Widget&&) = delete; - Widget& operator=(Widget&&) = delete; + Widget(Widget&&) = delete; + Widget& operator=(Widget&&) = delete; - ~Widget() = default; + ~Widget() = default; - void destroy() { delete _me; } + void destroy() { delete _me; } - W* get() { return _me; } - const W* get() const { return _me; } - W* operator->() { return _me; } - const W* operator->() const { return _me; } - W& operator*() { return *_me; } - const W& operator*() const { return *_me; } + W* get() { return _me; } + const W* get() const { return _me; } + W* operator->() { return _me; } + const W* operator->() const { return _me; } + W& operator*() { return *_me; } + const W& operator*() const { return *_me; } private: - W* _me; + W* _me; }; } // namespace patchage |