Skip to content

Commit

Permalink
Avoid gcc interpreting things as initializer lists.
Browse files Browse the repository at this point in the history
  • Loading branch information
lordofhyphens committed Jul 12, 2018
1 parent 720d4f1 commit 7fcf9b6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/GUI/AboutDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ static void link_clicked(wxHtmlLinkEvent& e)

AboutDialog::AboutDialog(wxWindow* parent) : wxDialog(parent, -1, _("About Slic3r"), wxDefaultPosition, wxSize(600, 460), wxCAPTION)
{
auto hsizer { new wxBoxSizer(wxHORIZONTAL) } ;
auto hsizer = new wxBoxSizer(wxHORIZONTAL) ;

auto vsizer { new wxBoxSizer(wxVERTICAL) } ;
auto vsizer = new wxBoxSizer(wxVERTICAL) ;

// logo
auto logo { new AboutDialogLogo(this) };
auto logo = new AboutDialogLogo(this);
hsizer->Add(logo, 0, wxEXPAND | wxLEFT | wxRIGHT, 30);

// title
auto title { new wxStaticText(this, -1, "Slic3r", wxDefaultPosition, wxDefaultSize) };
auto title = new wxStaticText(this, -1, "Slic3r", wxDefaultPosition, wxDefaultSize);
auto title_font { wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT) };

title_font.SetWeight(wxFONTWEIGHT_BOLD);
Expand All @@ -31,7 +31,7 @@ AboutDialog::AboutDialog(wxWindow* parent) : wxDialog(parent, -1, _("About Slic3

// version

auto version {new wxStaticText(this, -1, wxString("Version ") + wxString(SLIC3R_VERSION), wxDefaultPosition, wxDefaultSize) };
auto version = new wxStaticText(this, -1, wxString("Version ") + wxString(SLIC3R_VERSION), wxDefaultPosition, wxDefaultSize);
auto version_font { wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT) };
version_font.SetPointSize((the_os == OS::Windows ? 9 : 11));
version->SetFont(version_font);
Expand All @@ -54,7 +54,7 @@ AboutDialog::AboutDialog(wxWindow* parent) : wxDialog(parent, -1, _("About Slic3
<< "Built on " << build_date << " at git version " << git_version << "."
<< "</body>"
<< "</html>";
auto html {new wxHtmlWindow(this, -1, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_NEVER)};
auto html = new wxHtmlWindow(this, -1, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_NEVER);
html->SetBorders(2);
html->SetPage(text);

Expand Down

0 comments on commit 7fcf9b6

Please sign in to comment.