Bug 682547 - Convert readstrings.cpp to bool, r=rstrong

This commit is contained in:
Michael Wu 2011-08-30 11:55:14 -07:00
parent 16f77da63f
commit 56618dd3d2
2 changed files with 3 additions and 8 deletions

View File

@ -43,11 +43,6 @@
#include "readstrings.h"
#include "errors.h"
// Defined bool stuff here to reduce external dependencies
typedef int PRBool;
#define PR_TRUE 1
#define PR_FALSE 0
#ifdef XP_WIN
# define NS_tfopen _wfopen
# define OPEN_MODE L"rb"
@ -187,7 +182,7 @@ ReadStrings(const NS_tchar *path,
fileContents[flen] = '\0';
char *buffer = fileContents;
PRBool inStringsSection = PR_FALSE;
bool inStringsSection = false;
unsigned int read = 0;
@ -209,7 +204,7 @@ ReadStrings(const NS_tchar *path,
// we could frankly decide that this INI file is malformed right
// here and stop, but we won't... keep going, looking for
// a well-formed [section] to continue working with
inStringsSection = PR_FALSE;
inStringsSection = false;
}
else {
if (section)

View File

@ -1578,7 +1578,7 @@ LaunchWinPostProcess(const WCHAR *appExe)
wcscat(cmdline, exearg);
if (!_wcsnicmp(exeasync, L"false", 6) || !_wcsnicmp(exeasync, L"0", 2))
async = PR_FALSE;
async = false;
// We want to launch the post update helper app to update the Windows
// registry even if there is a failure with removing the uninstall.update