Formatted code (#1007)

* Updated style

* Updated files

* fixed new line

* Updated spacing

* File fix WIP

* Updated to clang 13

* updated comment style

* Removed old comment code
This commit is contained in:
jLynx 2023-05-19 08:16:05 +12:00 committed by GitHub
parent 7aca7ce74d
commit 033c4e9a5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
599 changed files with 70746 additions and 66896 deletions

View file

@ -35,29 +35,27 @@
namespace ui {
class Channel : public Widget {
public:
Channel(
const Rect parent_rect
) : Widget { parent_rect },
max_db_ { -120 }
{
}
public:
Channel(
const Rect parent_rect)
: Widget{parent_rect},
max_db_{-120} {
}
void paint(Painter& painter) override;
void paint(Painter& painter) override;
private:
int32_t max_db_;
private:
int32_t max_db_;
MessageHandlerRegistration message_handler_stats {
Message::ID::ChannelStatistics,
[this](const Message* const p) {
this->on_statistics_update(static_cast<const ChannelStatisticsMessage*>(p)->statistics);
}
};
MessageHandlerRegistration message_handler_stats{
Message::ID::ChannelStatistics,
[this](const Message* const p) {
this->on_statistics_update(static_cast<const ChannelStatisticsMessage*>(p)->statistics);
}};
void on_statistics_update(const ChannelStatistics& statistics);
void on_statistics_update(const ChannelStatistics& statistics);
};
}
} // namespace ui
#endif/*__UI_CHANNEL_H__*/
#endif /*__UI_CHANNEL_H__*/