@@ -511,7 +511,7 @@ bool KeyValues::IsEmpty(const char* pszKeyName)
511
511
KeyValues* KeyValues::GetFirstTrueSubKey (void ) const
512
512
{
513
513
assert_msg (this , " Member function called on NULL KeyValues" );
514
- KeyValues* pRet = this ? m_pSub : nullptr ;
514
+ KeyValues* pRet = m_pSub;
515
515
while (pRet && pRet->m_iDataType != TYPE_NONE)
516
516
pRet = pRet->m_pPeer ;
517
517
@@ -525,7 +525,7 @@ KeyValues* KeyValues::GetFirstTrueSubKey(void) const
525
525
KeyValues* KeyValues::GetNextTrueSubKey (void ) const
526
526
{
527
527
assert_msg (this , " Member function called on NULL KeyValues" );
528
- KeyValues* pRet = this ? m_pPeer : nullptr ;
528
+ KeyValues* pRet = m_pPeer;
529
529
while (pRet && pRet->m_iDataType != TYPE_NONE)
530
530
pRet = pRet->m_pPeer ;
531
531
@@ -539,7 +539,7 @@ KeyValues* KeyValues::GetNextTrueSubKey(void) const
539
539
KeyValues* KeyValues::GetFirstValue (void ) const
540
540
{
541
541
assert_msg (this , " Member function called on NULL KeyValues" );
542
- KeyValues* pRet = this ? m_pSub : nullptr ;
542
+ KeyValues* pRet = m_pSub;
543
543
while (pRet && pRet->m_iDataType == TYPE_NONE)
544
544
pRet = pRet->m_pPeer ;
545
545
@@ -553,7 +553,7 @@ KeyValues* KeyValues::GetFirstValue(void) const
553
553
KeyValues* KeyValues::GetNextValue (void ) const
554
554
{
555
555
assert_msg (this , " Member function called on NULL KeyValues" );
556
- KeyValues* pRet = this ? m_pPeer : nullptr ;
556
+ KeyValues* pRet = m_pPeer;
557
557
while (pRet && pRet->m_iDataType == TYPE_NONE)
558
558
pRet = pRet->m_pPeer ;
559
559
@@ -566,7 +566,7 @@ KeyValues* KeyValues::GetNextValue(void) const
566
566
KeyValues* KeyValues::GetFirstSubKey () const
567
567
{
568
568
assert_msg (this , " Member function called on NULL KeyValues" );
569
- return this ? m_pSub : nullptr ;
569
+ return m_pSub;
570
570
}
571
571
572
572
// -----------------------------------------------------------------------------
@@ -575,7 +575,7 @@ KeyValues* KeyValues::GetFirstSubKey() const
575
575
KeyValues* KeyValues::GetNextKey () const
576
576
{
577
577
assert_msg (this , " Member function called on NULL KeyValues" );
578
- return this ? m_pPeer : nullptr ;
578
+ return m_pPeer;
579
579
}
580
580
581
581
// -----------------------------------------------------------------------------
0 commit comments