use initializer list for constructor of GapAdvertisingData

master
Rohit Grover 2014-05-29 14:57:15 +01:00
parent c1044da0ec
commit 28c1ca8830
1 changed files with 3 additions and 4 deletions

View File

@ -30,11 +30,10 @@
\endcode
*/
/**************************************************************************/
GapAdvertisingData::GapAdvertisingData(void)
GapAdvertisingData::GapAdvertisingData(void) : _payload(),
_payloadLen(0),
_appearance(GENERIC_TAG)
{
memset(_payload, 0, GAP_ADVERTISING_DATA_MAX_PAYLOAD);
_payloadLen = 0;
_appearance = GENERIC_TAG;
}
/**************************************************************************/