mirror of
https://github.com/minetest/irrlicht.git
synced 2024-12-26 16:07:31 +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
|
||||
{
|
||||
ListItem() : Icon(-1)
|
||||
{}
|
||||
|
||||
core::stringw Text;
|
||||
s32 Icon;
|
||||
s32 Icon = -1;
|
||||
|
||||
// A multicolor extension
|
||||
struct ListItemOverrideColor
|
||||
{
|
||||
ListItemOverrideColor() : Use(false) {}
|
||||
bool Use;
|
||||
bool Use = false;
|
||||
video::SColor Color;
|
||||
};
|
||||
ListItemOverrideColor OverrideColors[EGUI_LBC_COUNT];
|
||||
ListItemOverrideColor OverrideColors[EGUI_LBC_COUNT]{};
|
||||
};
|
||||
|
||||
void recalculateItemHeight();
|
||||
|
Loading…
Reference in New Issue
Block a user