summaryrefslogtreecommitdiff
path: root/libs/surfaces/websockets/component.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-02-23 16:03:59 +0100
committerRobin Gareus <robin@gareus.org>2020-02-23 16:21:55 +0100
commit5e3480ba8f3dfd5368f323322de7eb79fcf8f97a (patch)
tree71a75edc24ebce9a6a6f9827f05a57488c43a2b9 /libs/surfaces/websockets/component.h
parent224be912112941199fc8c2ff79518d2d2a2262d0 (diff)
NO-OP: Re-indent websockets code
"Always use Tabstops for block-indent (the code must be formatted correctly with "[TAB] = N spaces" for any value of N). Use space only for alignment." - https://ardour.org/styleguide.html
Diffstat (limited to 'libs/surfaces/websockets/component.h')
-rw-r--r--libs/surfaces/websockets/component.h43
1 files changed, 24 insertions, 19 deletions
diff --git a/libs/surfaces/websockets/component.h b/libs/surfaces/websockets/component.h
index 5ee3900a4c..47abc3fdf3 100644
--- a/libs/surfaces/websockets/component.h
+++ b/libs/surfaces/websockets/component.h
@@ -24,8 +24,9 @@
#include "ardour/session.h"
#include "pbd/event_loop.h"
-namespace ArdourSurface {
- class ArdourWebsockets;
+namespace ArdourSurface
+{
+class ArdourWebsockets;
}
class ArdourStrips;
@@ -35,27 +36,31 @@ class WebsocketsDispatcher;
class SurfaceComponent
{
- public:
-
- SurfaceComponent (ArdourSurface::ArdourWebsockets& surface) : _surface (surface) {};
-
- virtual ~SurfaceComponent () {};
-
- virtual int start () { return 0; }
- virtual int stop () { return 0; }
+public:
+ SurfaceComponent (ArdourSurface::ArdourWebsockets& surface)
+ : _surface (surface){};
- PBD::EventLoop* event_loop () const;
- Glib::RefPtr<Glib::MainLoop> main_loop() const;
- ARDOUR::Session& session () const;
- ArdourStrips& strips () const;
- ArdourGlobals& globals () const;
- WebsocketsServer& server () const;
- WebsocketsDispatcher& dispatcher () const;
+ virtual ~SurfaceComponent (){};
- protected:
+ virtual int start ()
+ {
+ return 0;
+ }
+ virtual int stop ()
+ {
+ return 0;
+ }
- ArdourSurface::ArdourWebsockets& _surface;
+ PBD::EventLoop* event_loop () const;
+ Glib::RefPtr<Glib::MainLoop> main_loop () const;
+ ARDOUR::Session& session () const;
+ ArdourStrips& strips () const;
+ ArdourGlobals& globals () const;
+ WebsocketsServer& server () const;
+ WebsocketsDispatcher& dispatcher () const;
+protected:
+ ArdourSurface::ArdourWebsockets& _surface;
};
#endif // surface_component_h