Eliminate a warning

git-svn-id: svn://10.0.0.236/trunk@48480 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp%netscape.com
1999-09-21 02:09:46 +00:00
parent 3156578dc4
commit c4b871aef6
7 changed files with 24 additions and 24 deletions

View File

@@ -793,7 +793,6 @@ NS_IMETHODIMP
LocationImpl::Reload(JSContext *cx, jsval *argv, PRUint32 argc)
{
// XXX Security manager needs to be called
nsresult result = NS_OK;
JSBool force = JS_FALSE;
if (argc > 0) {

View File

@@ -743,18 +743,20 @@ void XXXDomNeverCalled();
void XXXDomNeverCalled()
{
nsJSContext* jcx = new nsJSContext(0);
NS_NewScriptGlobalObject(0);
NS_NewScriptNavigator(0, 0, 0, 0);
NS_NewScriptLocation(0, 0, 0, 0);
NS_NewScriptEventListener(0, 0, 0, 0);
NS_NewJSEventListener(0, 0, 0);
NS_NewScriptCSS2Properties(0, 0, 0, 0);
NS_NewScriptCSSStyleSheet(0, 0, 0, 0);
NS_NewScriptStyleSheetCollection(0, 0, 0, 0);
NS_NewScriptCSSStyleRule(0, 0, 0, 0);
NS_NewScriptCSSStyleRuleCollection(0, 0, 0, 0);
NS_NewScriptRange(0, 0, 0, 0);
NS_NewScriptSelection(0, 0, 0, 0);
NS_NewScriptSelectionListener(0, 0, 0, 0);
NS_InitDocumentClass(nsnull, nsnull);
if (jcx) {
NS_NewScriptGlobalObject(0);
NS_NewScriptNavigator(0, 0, 0, 0);
NS_NewScriptLocation(0, 0, 0, 0);
NS_NewScriptEventListener(0, 0, 0, 0);
NS_NewJSEventListener(0, 0, 0);
NS_NewScriptCSS2Properties(0, 0, 0, 0);
NS_NewScriptCSSStyleSheet(0, 0, 0, 0);
NS_NewScriptStyleSheetCollection(0, 0, 0, 0);
NS_NewScriptCSSStyleRule(0, 0, 0, 0);
NS_NewScriptCSSStyleRuleCollection(0, 0, 0, 0);
NS_NewScriptRange(0, 0, 0, 0);
NS_NewScriptSelection(0, 0, 0, 0);
NS_NewScriptSelectionListener(0, 0, 0, 0);
NS_InitDocumentClass(nsnull, nsnull);
}
}

View File

@@ -68,7 +68,6 @@ NS_IMPL_RELEASE(nsJSDOMEventListener)
nsresult nsJSDOMEventListener::HandleEvent(nsIDOMEvent* aEvent)
{
jsval result;
jsval argv[1];
JSObject *eventObj;

View File

@@ -215,9 +215,9 @@ PRBool CDTDDebug::DebugRecord(char * path, nsString& aURLRef, char * filename)
// vectors are stored on the format iof "URL vector filename"
// where the vector contains the verification path and
// the filename contains the debug source dump
char buffer[513];
aURLRef.ToCString(buffer,sizeof(buffer));
sprintf(string,"%s %s %s\r\n", buffer, path, filename);
char ubuffer[513];
aURLRef.ToCString(ubuffer,sizeof(ubuffer));
sprintf(string,"%s %s %s\r\n", ubuffer, path, filename);
// get the file size, read in the file and parse it line at
// a time to check to see if we have already recorded this

View File

@@ -432,7 +432,7 @@ void nsExpatTokenizer::HandleCharacterData(void *userData, const XML_Char *s, in
}
if(newToken) {
if ((s[0] != kNewLine) && (s[0] != CR)) {
if ((s[0] != (XML_Char)kNewLine) && (s[0] != (XML_Char)kCR)) {
nsString& theString=newToken->GetStringValueXXX();
theString.Append((PRUnichar *) s,len);
}

View File

@@ -215,9 +215,9 @@ PRBool CDTDDebug::DebugRecord(char * path, nsString& aURLRef, char * filename)
// vectors are stored on the format iof "URL vector filename"
// where the vector contains the verification path and
// the filename contains the debug source dump
char buffer[513];
aURLRef.ToCString(buffer,sizeof(buffer));
sprintf(string,"%s %s %s\r\n", buffer, path, filename);
char ubuffer[513];
aURLRef.ToCString(ubuffer,sizeof(ubuffer));
sprintf(string,"%s %s %s\r\n", ubuffer, path, filename);
// get the file size, read in the file and parse it line at
// a time to check to see if we have already recorded this

View File

@@ -432,7 +432,7 @@ void nsExpatTokenizer::HandleCharacterData(void *userData, const XML_Char *s, in
}
if(newToken) {
if ((s[0] != kNewLine) && (s[0] != CR)) {
if ((s[0] != (XML_Char)kNewLine) && (s[0] != (XML_Char)kCR)) {
nsString& theString=newToken->GetStringValueXXX();
theString.Append((PRUnichar *) s,len);
}