summaryrefslogtreecommitdiffstats
path: root/src/Widget.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-01-02 14:02:44 +0100
committerDavid Robillard <d@drobilla.net>2021-01-02 14:02:44 +0100
commit663a5d01b1931b97370ed8feff3ae229a9cc7ea4 (patch)
treeaba74794cb45f06734bd80bbf53d79f947008e54 /src/Widget.hpp
parent1936aace80b5594078d874e9b661a9a91e461279 (diff)
downloadpatchage-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.hpp34
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