mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-29 21:07:11 +00:00
fix: LabelItemType underlying type to silence narrowing in clang-cl
LabelItemType values are used with Marker, which is std::size_t. MSVC accepts the implicit narrowing in this path, but clang-cl diagnoses it more strictly. Give the enum the same underlying type as Marker.
This commit is contained in:
@@ -39,7 +39,7 @@ public:
|
|||||||
PresetComboBox(wxWindow* parent, Preset::Type preset_type, const wxSize& size = wxDefaultSize, PresetBundle* preset_bundle = nullptr);
|
PresetComboBox(wxWindow* parent, Preset::Type preset_type, const wxSize& size = wxDefaultSize, PresetBundle* preset_bundle = nullptr);
|
||||||
~PresetComboBox();
|
~PresetComboBox();
|
||||||
|
|
||||||
enum LabelItemType {
|
enum LabelItemType : std::size_t {
|
||||||
LABEL_ITEM_PHYSICAL_PRINTER = 0xffffff01,
|
LABEL_ITEM_PHYSICAL_PRINTER = 0xffffff01,
|
||||||
LABEL_ITEM_PRINTER_MODELS,
|
LABEL_ITEM_PRINTER_MODELS,
|
||||||
LABEL_ITEM_DISABLED,
|
LABEL_ITEM_DISABLED,
|
||||||
|
|||||||
Reference in New Issue
Block a user