Fixes implicit ternary expressions
This commit is contained in:
parent
c85b0a740c
commit
ff26dfa375
345 changed files with 1905 additions and 2336 deletions
|
|
@ -213,22 +213,21 @@ namespace Server
|
|||
|
||||
if ( m_Major > o.m_Major )
|
||||
return 1;
|
||||
else if ( m_Major < o.m_Major )
|
||||
if ( m_Major < o.m_Major )
|
||||
return -1;
|
||||
else if ( m_Minor > o.m_Minor )
|
||||
if ( m_Minor > o.m_Minor )
|
||||
return 1;
|
||||
else if ( m_Minor < o.m_Minor )
|
||||
if ( m_Minor < o.m_Minor )
|
||||
return -1;
|
||||
else if ( m_Revision > o.m_Revision )
|
||||
if ( m_Revision > o.m_Revision )
|
||||
return 1;
|
||||
else if ( m_Revision < o.m_Revision )
|
||||
if ( m_Revision < o.m_Revision )
|
||||
return -1;
|
||||
else if ( m_Patch > o.m_Patch )
|
||||
if ( m_Patch > o.m_Patch )
|
||||
return 1;
|
||||
else if ( m_Patch < o.m_Patch )
|
||||
if ( m_Patch < o.m_Patch )
|
||||
return -1;
|
||||
else
|
||||
return 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static bool IsNull( object x )
|
||||
|
|
@ -240,9 +239,9 @@ namespace Server
|
|||
{
|
||||
if ( IsNull( x ) && IsNull( y ) )
|
||||
return 0;
|
||||
else if ( IsNull( x ) )
|
||||
if ( IsNull( x ) )
|
||||
return -1;
|
||||
else if ( IsNull( y ) )
|
||||
if ( IsNull( y ) )
|
||||
return 1;
|
||||
|
||||
ClientVersion a = x as ClientVersion;
|
||||
|
|
@ -258,9 +257,9 @@ namespace Server
|
|||
{
|
||||
if ( IsNull( a ) && IsNull( b ) )
|
||||
return 0;
|
||||
else if ( IsNull( a ) )
|
||||
if ( IsNull( a ) )
|
||||
return -1;
|
||||
else if ( IsNull( b ) )
|
||||
if ( IsNull( b ) )
|
||||
return 1;
|
||||
|
||||
return a.CompareTo( b );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue