[code-style] fix initializers in constructors

This commit is contained in:
Jonathan Hui
2018-02-01 12:48:20 -08:00
parent 69d98d4a53
commit 12237d07dc
8 changed files with 49 additions and 90 deletions
+9 -16
View File
@@ -261,33 +261,26 @@ typedef otPtr<const uint8_t> otBufferPtr;
typedef otPtr<const char> otStringPtr;
Interpreter::Interpreter(Instance *aInstance)
:
#if OPENTHREAD_ENABLE_APPLICATION_COAP
mCoap(*this)
,
#endif
mUserCommands(NULL)
: mUserCommands(NULL)
, mUserCommandsLength(0)
, mServer(NULL)
,
#ifdef OTDLL
mApiInstance(otApiInit())
, mApiInstance(otApiInit())
, mInstanceIndex(0)
,
#else
mLength(8)
, mLength(8)
, mCount(1)
, mInterval(1000)
, mPingTimer(*aInstance, &Interpreter::s_HandlePingTimer, this)
,
#if OPENTHREAD_ENABLE_DNS_CLIENT
mResolvingInProgress(0)
,
, mResolvingInProgress(0)
#endif
mUdp(*this)
,
, mUdp(*this)
#endif
, mInstance(aInstance)
#if OPENTHREAD_ENABLE_APPLICATION_COAP
, mCoap(*this)
#endif
mInstance(aInstance)
{
#ifdef OTDLL
assert(mApiInstance);