MessageBuffer::MessageBuffer( std::size_t initialCapacity )
: mInitialCapacity( initialCapacity / WORD_SIZE ),
- mData( NULL ),
- mNextSlot( NULL ),
+ mData( nullptr ),
+ mNextSlot( nullptr ),
mCapacity( 0 ),
mSize( 0 )
{
return Iterator( mData );
}
- return Iterator( NULL );
+ return Iterator( nullptr );
}
void MessageBuffer::Reset()
{
mData = reinterpret_cast<WordType*>( malloc( newCapacity * WORD_SIZE ) );
}
- DALI_ASSERT_ALWAYS( NULL != mData );
+ DALI_ASSERT_ALWAYS( nullptr != mData );
mCapacity = newCapacity;
mNextSlot = mData + mSize;
: mCurrent(current),
mMessageSize(0)
{
- if( NULL != mCurrent )
+ if( nullptr != mCurrent )
{
// The first word is the size of the following object
mMessageSize = *mCurrent++;
}
}
-MessageBuffer::Iterator::Iterator(const Iterator& copy)
-: mCurrent( copy.mCurrent ),
- mMessageSize( copy.mMessageSize )
-{
-}
+MessageBuffer::Iterator::Iterator(const Iterator& copy) = default;
} // namespace Internal