mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-23 01:49:17 +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();
|
||||
|
||||
enum LabelItemType {
|
||||
enum LabelItemType : std::size_t {
|
||||
LABEL_ITEM_PHYSICAL_PRINTER = 0xffffff01,
|
||||
LABEL_ITEM_PRINTER_MODELS,
|
||||
LABEL_ITEM_DISABLED,
|
||||
|
||||
Reference in New Issue
Block a user