Obvious fixes to stupid warnings
This commit is contained in:
parent
e0eac1f20c
commit
5f19539df5
6 changed files with 7 additions and 7 deletions
|
@ -2080,7 +2080,7 @@ void Control::auto_color_change()
|
|||
}
|
||||
|
||||
int extruders_cnt = GUI::wxGetApp().extruders_edited_cnt();
|
||||
int extruder = 2;
|
||||
// int extruder = 2;
|
||||
|
||||
const Print& print = GUI::wxGetApp().plater()->fff_print();
|
||||
for (auto object : print.objects()) {
|
||||
|
|
|
@ -1433,7 +1433,7 @@ void ObjectList::load_subobject(ModelVolumeType type, bool from_galery/* = false
|
|||
selection_changed();
|
||||
}
|
||||
/*
|
||||
void ObjectList::load_part(ModelObject& model_object, std::vector<ModelVolume*>& added_volumes, ModelVolumeType type, bool from_galery/* = false* /)
|
||||
void ObjectList::load_part(ModelObject& model_object, std::vector<ModelVolume*>& added_volumes, ModelVolumeType type, bool from_galery = false)
|
||||
{
|
||||
if (type != ModelVolumeType::MODEL_PART)
|
||||
return;
|
||||
|
|
|
@ -306,7 +306,7 @@ ImVec2 ImGuiWrapper::get_item_spacing() const
|
|||
{
|
||||
const ImGuiContext &g = *GImGui;
|
||||
const ImGuiStyle &style = g.Style;
|
||||
return g.Style.ItemSpacing;
|
||||
return style.ItemSpacing;
|
||||
}
|
||||
|
||||
float ImGuiWrapper::get_slider_float_height() const
|
||||
|
|
|
@ -201,7 +201,7 @@ void OptionsGroup::activate_line(Line& line)
|
|||
if (line.is_separator())
|
||||
return;
|
||||
|
||||
m_use_custom_ctrl_as_parent = false;
|
||||
m_use_custom_ctrl_as_parent = false;
|
||||
|
||||
if (line.full_width && (
|
||||
line.widget != nullptr ||
|
||||
|
|
|
@ -205,7 +205,7 @@ void ObjectInfo::msw_rescale()
|
|||
|
||||
void ObjectInfo::update_warning_icon(const std::string& warning_icon_name)
|
||||
{
|
||||
if (showing_manifold_warning_icon = !warning_icon_name.empty()) {
|
||||
if ((showing_manifold_warning_icon = !warning_icon_name.empty())) {
|
||||
m_warning_icon_name = warning_icon_name;
|
||||
manifold_warning_icon->SetBitmap(create_scaled_bitmap(m_warning_icon_name));
|
||||
}
|
||||
|
|
|
@ -220,7 +220,7 @@ SCENARIO("DynamicPrintConfig serialization", "[Config]") {
|
|||
cereal::BinaryOutputArchive oarchive(ss);
|
||||
oarchive(cfg);
|
||||
serialized = ss.str();
|
||||
} catch (std::runtime_error e) {
|
||||
} catch (std::runtime_error &e) {
|
||||
e.what();
|
||||
}
|
||||
|
||||
|
@ -230,7 +230,7 @@ SCENARIO("DynamicPrintConfig serialization", "[Config]") {
|
|||
std::stringstream ss(serialized);
|
||||
cereal::BinaryInputArchive iarchive(ss);
|
||||
iarchive(cfg2);
|
||||
} catch (std::runtime_error e) {
|
||||
} catch (std::runtime_error &e) {
|
||||
e.what();
|
||||
}
|
||||
REQUIRE(cfg == cfg2);
|
||||
|
|
Loading…
Reference in a new issue