mapi32: Remove superfluous TRUE:FALSE conditional expressions.

This commit is contained in:
Michael Stefaniuc 2012-07-31 11:31:06 +02:00 committed by Alexandre Julliard
parent d94eaa3b20
commit 6740d340c6
2 changed files with 7 additions and 7 deletions

View File

@ -417,12 +417,12 @@ BOOL WINAPI FPropCompareProp(LPSPropValue lpPropLeft, ULONG ulOp, LPSPropValue l
switch (ulOp) switch (ulOp)
{ {
case RELOP_LT: return iCmp < 0 ? TRUE : FALSE; case RELOP_LT: return iCmp < 0;
case RELOP_LE: return iCmp <= 0 ? TRUE : FALSE; case RELOP_LE: return iCmp <= 0;
case RELOP_GT: return iCmp > 0 ? TRUE : FALSE; case RELOP_GT: return iCmp > 0;
case RELOP_GE: return iCmp >= 0 ? TRUE : FALSE; case RELOP_GE: return iCmp >= 0;
case RELOP_EQ: return iCmp == 0 ? TRUE : FALSE; case RELOP_EQ: return iCmp == 0;
case RELOP_NE: return iCmp != 0 ? TRUE : FALSE; case RELOP_NE: return iCmp != 0;
} }
return FALSE; return FALSE;
} }

View File

@ -488,7 +488,7 @@ BOOL WINAPI FEqualNames(LPMAPINAMEID lpName1, LPMAPINAMEID lpName2)
if (lpName1->ulKind == MNID_STRING) if (lpName1->ulKind == MNID_STRING)
return !strcmpW(lpName1->Kind.lpwstrName, lpName2->Kind.lpwstrName); return !strcmpW(lpName1->Kind.lpwstrName, lpName2->Kind.lpwstrName);
return lpName1->Kind.lID == lpName2->Kind.lID ? TRUE : FALSE; return lpName1->Kind.lID == lpName2->Kind.lID;
} }
/************************************************************************** /**************************************************************************