mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-09-17 03:23:13 +08:00
Catch exceptions by reference instead of by value (silence warning)
This commit is contained in:
parent
8e6324954c
commit
1433ba65c9
@ -369,7 +369,7 @@ void MainFrame::update_layout()
|
|||||||
try {
|
try {
|
||||||
icon_size = atoi(wxGetApp().app_config->get("tab_icon_size").c_str());
|
icon_size = atoi(wxGetApp().app_config->get("tab_icon_size").c_str());
|
||||||
}
|
}
|
||||||
catch (std::exception e) {}
|
catch (const std::exception& e) {}
|
||||||
if(icon_size >= 8)
|
if(icon_size >= 8)
|
||||||
for (std::string icon_name : {"editor_menu", "layers", "preview_menu", "cog"}) {
|
for (std::string icon_name : {"editor_menu", "layers", "preview_menu", "cog"}) {
|
||||||
const wxBitmap& bmp = create_scaled_bitmap(icon_name, this, icon_size);
|
const wxBitmap& bmp = create_scaled_bitmap(icon_name, this, icon_size);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user