Network: fixed uninitialized members.

* CIDs 1251073, 1292681, 1292686, and 1292687 -- all irrelevant, though.
This commit is contained in:
Axel Dörfler
2015-04-02 10:56:36 +02:00
parent 7695c3b7eb
commit ba931975e5
4 changed files with 14 additions and 3 deletions
@@ -35,7 +35,12 @@
InterfaceListItem::InterfaceListItem(const char* name)
:
BListItem(0, false),
fIcon(NULL)
fIcon(NULL),
fFirstLineOffset(0),
fLineOffset(0),
fDisabled(false),
fHasLink(false),
fConnecting(false)
{
fInterface.SetTo(name);
_Init();
+2 -1
View File
@@ -43,7 +43,8 @@ static const uint32 kMsgJoinNetwork = 'join';
InterfaceView::InterfaceView()
:
BGroupView(B_VERTICAL)
BGroupView(B_VERTICAL),
fPulseCount(0)
{
SetFlags(Flags() | B_PULSE_NEEDED);
@@ -108,7 +108,10 @@ BNetworkInterfaceListItem::BNetworkInterfaceListItem(int family,
fSettings(settings),
fFamily(family),
fInterface(interface),
fLabel(label)
fLabel(label),
fDisabled(false),
fLineOffset(0),
fSpacing(0)
{
}
@@ -27,6 +27,8 @@ ServiceListItem::ServiceListItem(const char* name, const char* label,
fName(name),
fLabel(label),
fSettings(settings),
fOwner(NULL),
fLineOffset(0),
fEnabled(false)
{
}