mirror of
https://github.com/minetest/irrlicht.git
synced 2024-12-27 08:27:30 +01:00
Cleaner ListItem initialization (#117)
Should fix Coverity report CIDs 1516434 and 1518460.
This commit is contained in:
parent
6db035e0aa
commit
b787ec3e3e
@ -132,20 +132,16 @@ namespace gui
|
|||||||
|
|
||||||
struct ListItem
|
struct ListItem
|
||||||
{
|
{
|
||||||
ListItem() : Icon(-1)
|
|
||||||
{}
|
|
||||||
|
|
||||||
core::stringw Text;
|
core::stringw Text;
|
||||||
s32 Icon;
|
s32 Icon = -1;
|
||||||
|
|
||||||
// A multicolor extension
|
// A multicolor extension
|
||||||
struct ListItemOverrideColor
|
struct ListItemOverrideColor
|
||||||
{
|
{
|
||||||
ListItemOverrideColor() : Use(false) {}
|
bool Use = false;
|
||||||
bool Use;
|
|
||||||
video::SColor Color;
|
video::SColor Color;
|
||||||
};
|
};
|
||||||
ListItemOverrideColor OverrideColors[EGUI_LBC_COUNT];
|
ListItemOverrideColor OverrideColors[EGUI_LBC_COUNT]{};
|
||||||
};
|
};
|
||||||
|
|
||||||
void recalculateItemHeight();
|
void recalculateItemHeight();
|
||||||
|
Loading…
Reference in New Issue
Block a user