Change reference initializations errors in GCC 4.8

Resolves issue #12.
This commit is contained in:
Jared Boone 2015-07-17 12:07:38 -07:00
parent 92ba4d7fea
commit e571ca7f1c
8 changed files with 9 additions and 9 deletions

View File

@ -281,8 +281,8 @@ public:
ui::Painter& painter,
ui::Context& context
) : top_widget { top_widget },
painter { painter },
context { context }
painter(painter),
context(context)
{
// touch_manager.on_started = [this](const ui::TouchEvent event) {
// this->context.focus_manager.update(this->top_widget, event);

View File

@ -35,7 +35,7 @@ class ReceiverModel {
public:
constexpr ReceiverModel(
ClockManager& clock_manager
) : clock_manager { clock_manager }
) : clock_manager(clock_manager)
{
}

View File

@ -38,7 +38,7 @@ public:
const Rect parent_rect,
lcd::ILI9341& display
) : Widget { parent_rect },
display { display }
display(display)
{
}

View File

@ -119,7 +119,7 @@ SystemView::SystemView(
Context& context,
const Rect parent_rect
) : View { parent_rect },
context_ { context }
context_(context)
{
style_ = &style_default;

View File

@ -376,7 +376,7 @@ void LNAGainField::on_focus() {
ReceiverView::ReceiverView(
NavigationView& nav,
ReceiverModel& receiver_model
) : receiver_model { receiver_model }
) : receiver_model(receiver_model)
{
add_children({ {
&button_done,

View File

@ -60,7 +60,7 @@ public:
FIR64AndDecimateBy2Real(
const std::array<int16_t, taps_count>& taps
) : taps { taps }
) : taps(taps)
{
}

View File

@ -582,7 +582,7 @@ class FSKProcessor : public BasebandProcessor {
public:
FSKProcessor(
MessageHandlerMap& message_handlers
) : message_handlers { message_handlers }
) : message_handlers(message_handlers)
{
message_handlers[Message::ID::FSKConfiguration] = [this](const Message* const p) {
auto m = reinterpret_cast<const FSKConfigurationMessage*>(p);

View File

@ -43,7 +43,7 @@ class Painter {
public:
Painter(
lcd::ILI9341& display
) : display_ { display }
) : display_(display)
{
}