Bug 675485 - Fix PRBool misuses found in a debug build, r=bz,taras
This commit is contained in:
Родитель
3c5dd75450
Коммит
860aed4085
|
@ -203,12 +203,12 @@ static PRLogModuleInfo* gLogModule;
|
|||
|
||||
static PRLogModuleInfo* gStyleVerifyTreeLogModuleInfo;
|
||||
|
||||
static PRBool gStyleVerifyTreeEnable = PRBool(0x55);
|
||||
static PRUint32 gStyleVerifyTreeEnable = 0x55;
|
||||
|
||||
PRBool
|
||||
nsFrame::GetVerifyStyleTreeEnable()
|
||||
{
|
||||
if (gStyleVerifyTreeEnable == PRBool(0x55)) {
|
||||
if (gStyleVerifyTreeEnable == 0x55) {
|
||||
if (nsnull == gStyleVerifyTreeLogModuleInfo) {
|
||||
gStyleVerifyTreeLogModuleInfo = PR_NewLogModule("styleverifytree");
|
||||
gStyleVerifyTreeEnable = 0 != gStyleVerifyTreeLogModuleInfo->level;
|
||||
|
|
|
@ -510,7 +510,7 @@ StartupCacheDebugOutputStream::CheckReferences(nsISupports* aObject)
|
|||
|
||||
PRUint32 flags;
|
||||
rv = classInfo->GetFlags(&flags);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
NS_ENSURE_SUCCESS(rv, PR_FALSE);
|
||||
if (flags & nsIClassInfo::SINGLETON)
|
||||
return PR_TRUE;
|
||||
|
||||
|
|
|
@ -340,7 +340,7 @@ int main(int argc, char **argv)
|
|||
|
||||
// Loop over the sorted nodes twice, first printing the roots
|
||||
// and then the non-roots.
|
||||
for (PRBool root_type = PR_TRUE;
|
||||
for (PRInt32 root_type = PR_TRUE;
|
||||
root_type == PR_TRUE || root_type == PR_FALSE; --root_type) {
|
||||
if (root_type) {
|
||||
printf("\n\n"
|
||||
|
|
Загрузка…
Ссылка в новой задаче