diff options
author | Lukas Matena <lukasmatena@seznam.cz> | 2019-09-06 18:46:55 +0300 |
---|---|---|
committer | Lukas Matena <lukasmatena@seznam.cz> | 2019-09-10 13:08:43 +0300 |
commit | 86b258f727212fde4cf4a7a5160bfe7d2b7e0972 (patch) | |
tree | 5c6ab617623e79ade49776cd819018f6d8afaea8 /src/slic3r/Config | |
parent | 4585618aeabdfe8f51220b69eb390aaae6965caa (diff) |
Fixed many warnings in following files:
src/slic3r/Config/Snapshot.cpp
src/slic3r/GUI/Field.cpp
src/slic3r/GUI/GLToolbar.cpp
src/slic3r/GUI/GUI_ObjectList.cpp
src/slic3r/GUI/GUI_ObjectList.hpp
src/slic3r/GUI/Plater.cpp
src/slic3r/GUI/Plater.hpp
src/slic3r/GUI/PresetBundle.cpp
src/slic3r/GUI/Tab.cpp
src/slic3r/GUI/wxExtensions.cpp
Diffstat (limited to 'src/slic3r/Config')
-rw-r--r-- | src/slic3r/Config/Snapshot.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/slic3r/Config/Snapshot.cpp b/src/slic3r/Config/Snapshot.cpp index 3757ec25b..2aebd0c72 100644 --- a/src/slic3r/Config/Snapshot.cpp +++ b/src/slic3r/Config/Snapshot.cpp @@ -202,9 +202,9 @@ void Snapshot::export_selections(AppConfig &config) const config.clear_section("presets"); config.set("presets", "print", print); config.set("presets", "filament", filaments.front()); - for (int i = 1; i < filaments.size(); ++i) { + for (unsigned i = 1; i < filaments.size(); ++i) { char name[64]; - sprintf(name, "filament_%d", i); + sprintf(name, "filament_%u", i); config.set("presets", name, filaments[i]); } config.set("presets", "printer", printer); @@ -373,9 +373,9 @@ const Snapshot& SnapshotDB::take_snapshot(const AppConfig &app_config, Snapshot: snapshot.print = app_config.get("presets", "print"); snapshot.filaments.emplace_back(app_config.get("presets", "filament")); snapshot.printer = app_config.get("presets", "printer"); - for (unsigned int i = 1; i < 1000; ++ i) { + for (unsigned i = 1; i < 1000; ++ i) { char name[64]; - sprintf(name, "filament_%d", i); + sprintf(name, "filament_%u", i); if (! app_config.has("presets", name)) break; snapshot.filaments.emplace_back(app_config.get("presets", name)); |