Skip to content

Commit

Permalink
GUI2: don't use 0 to initialize nullptrs
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Aug 25, 2017
1 parent bb5e283 commit 39043fb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/gui/core/event/distributor.cpp
Expand Up @@ -371,7 +371,7 @@ mouse_button<T>::mouse_button(const std::string& name_, widget& owner,
: mouse_motion(owner, queue_position)
, last_click_stamp_(0)
, last_clicked_widget_(nullptr)
, focus_(0)
, focus_(nullptr)
, name_(name_)
, is_down_(false)
, signal_handler_sdl_button_down_entered_(false)
Expand Down Expand Up @@ -549,8 +549,8 @@ distributor::distributor(widget& owner,
, hover_id_(0)
, hover_box_()
, had_hover_(false)
, tooltip_(0)
, help_popup_(0)
, tooltip_(nullptr)
, help_popup_(nullptr)
#endif
, keyboard_focus_(nullptr)
, keyboard_focus_chain_()
Expand Down
2 changes: 1 addition & 1 deletion src/gui/core/window_builder.cpp
Expand Up @@ -372,7 +372,7 @@ builder_window::window_resolution::window_resolution(const config& cfg)
, linked_groups()
, tooltip(cfg.child_or_empty("tooltip"), "tooltip")
, helptip(cfg.child_or_empty("helptip"), "helptip")
, grid(0)
, grid(nullptr)
{
if(!cfg["functions"].empty()) {
wfl::formula(cfg["functions"], &functions).evaluate();
Expand Down
2 changes: 1 addition & 1 deletion src/gui/widgets/window.cpp
Expand Up @@ -296,7 +296,7 @@ window::window(CVideo& video, const builder_window::window_resolution* definitio
, status_(NEW)
, show_mode_(none)
, retval_(NONE)
, owner_(0)
, owner_(nullptr)
, need_layout_(true)
, variables_()
, invalidate_layout_blocked_(false)
Expand Down

0 comments on commit 39043fb

Please sign in to comment.