De-constexpr a few UI constructors.

Because it was silly.
This commit is contained in:
Jared Boone 2016-04-22 11:18:35 -07:00
parent 61b5faf8b5
commit 27a1423309
5 changed files with 6 additions and 6 deletions

View File

@ -34,7 +34,7 @@ namespace ui {
class Audio : public Widget { class Audio : public Widget {
public: public:
constexpr Audio( Audio(
const Rect parent_rect const Rect parent_rect
) : Widget { parent_rect }, ) : Widget { parent_rect },
rms_db_ { -120 }, rms_db_ { -120 },

View File

@ -34,7 +34,7 @@ namespace ui {
class Channel : public Widget { class Channel : public Widget {
public: public:
constexpr Channel( Channel(
const Rect parent_rect const Rect parent_rect
) : Widget { parent_rect }, ) : Widget { parent_rect },
max_db_ { -120 } max_db_ { -120 }

View File

@ -84,7 +84,7 @@ private:
class TemperatureWidget : public Widget { class TemperatureWidget : public Widget {
public: public:
explicit constexpr TemperatureWidget( explicit TemperatureWidget(
Rect parent_rect Rect parent_rect
) : Widget { parent_rect } ) : Widget { parent_rect }
{ {

View File

@ -34,7 +34,7 @@ namespace ui {
class RSSI : public Widget { class RSSI : public Widget {
public: public:
constexpr RSSI( RSSI(
const Rect parent_rect const Rect parent_rect
) : Widget { parent_rect }, ) : Widget { parent_rect },
min_ { 0 }, min_ { 0 },

View File

@ -51,12 +51,12 @@ private:
class Widget { class Widget {
public: public:
constexpr Widget( Widget(
) : parent_rect { } ) : parent_rect { }
{ {
} }
constexpr Widget( Widget(
Rect parent_rect Rect parent_rect
) : parent_rect { parent_rect } ) : parent_rect { parent_rect }
{ {