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::Painter& painter,
ui::Context& context ui::Context& context
) : top_widget { top_widget }, ) : top_widget { top_widget },
painter { painter }, painter(painter),
context { context } context(context)
{ {
// touch_manager.on_started = [this](const ui::TouchEvent event) { // touch_manager.on_started = [this](const ui::TouchEvent event) {
// this->context.focus_manager.update(this->top_widget, event); // this->context.focus_manager.update(this->top_widget, event);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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