Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TabLabel: Fix member initialization #254

Merged
merged 1 commit into from
Apr 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/skeleton/tablabel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ enum


TabLabel::TabLabel( const std::string& url )
: m_url( url ), m_id_icon( ICON::NUM_ICONS ), m_image( nullptr )
: m_url( url )
, m_id_icon( ICON::NUM_ICONS )
{
#ifdef _DEBUG
std::cout << "TabLabel::TabLabel " << m_url << std::endl;
Expand Down
10 changes: 5 additions & 5 deletions src/skeleton/tablabel.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ namespace SKELETON
SIG_TAB_DRAG_DATA_GET m_sig_tab_drag_data_get;
SIG_TAB_DRAG_END m_sig_tab_drag_end;

int m_x;
int m_y;
int m_width;
int m_height;
int m_x{};
int m_y{};
int m_width{};
int m_height{};

std::string m_url;
Gtk::HBox m_hbox;
Expand All @@ -38,7 +38,7 @@ namespace SKELETON
Gtk::Label m_label;

// アイコン画像
Gtk::Image* m_image;
Gtk::Image* m_image{};

// ラベルに表示する文字列の全体
std::string m_fulltext;
Expand Down