Eliminate a warning
git-svn-id: svn://10.0.0.236/trunk@48480 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -68,7 +68,6 @@ NS_IMPL_RELEASE(nsJSDOMEventListener)
|
||||
|
||||
nsresult nsJSDOMEventListener::HandleEvent(nsIDOMEvent* aEvent)
|
||||
{
|
||||
jsval result;
|
||||
jsval argv[1];
|
||||
JSObject *eventObj;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user