Skip to content

Commit

Permalink
Cleaned up two emplace_back calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Jun 16, 2018
1 parent e8bd3c2 commit f95dc40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gui/widgets/menu_button.cpp
Expand Up @@ -45,7 +45,7 @@ menu_button::menu_button(const implementation::builder_menu_button& builder)
, selected_(0)
, keep_open_(false)
{
values_.emplace_back(::config {"label", this->get_label()});
values_.emplace_back("label", this->get_label());

connect_signal<event::MOUSE_ENTER>(
std::bind(&menu_button::signal_handler_mouse_enter, this, _2, _3));
Expand Down
2 changes: 1 addition & 1 deletion src/gui/widgets/multimenu_button.cpp
Expand Up @@ -47,7 +47,7 @@ multimenu_button::multimenu_button(const implementation::builder_multimenu_butto
, toggle_states_()
, droplist_(nullptr)
{
values_.emplace_back(::config {"label", this->get_label()});
values_.emplace_back("label", this->get_label());

connect_signal<event::MOUSE_ENTER>(
std::bind(&multimenu_button::signal_handler_mouse_enter, this, _2, _3));
Expand Down

0 comments on commit f95dc40

Please sign in to comment.