Removing warnings. a=don r=waqar

git-svn-id: svn://10.0.0.236/trunk@56444 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
vidur%netscape.com
1999-12-22 22:47:15 +00:00
parent 61f580e993
commit d562441874
6 changed files with 8 additions and 14 deletions

View File

@@ -489,7 +489,6 @@ nsresult nsEventListenerManager::SetJSEventListener(nsIScriptContext *aContext,
REFNSIID aIID,
PRBool aIsString)
{
nsIDOMEventListener* theListener = nsnull;
nsresult result = NS_OK;
nsListenerStruct *ls;

View File

@@ -848,16 +848,16 @@ nsFormControlList::GetNamedObject(JSContext* aContext, jsval aID, JSObject** aOb
char* str = JS_GetStringBytes(JS_ValueToString(aContext, aID));
nsAutoString name(str);
nsCOMPtr<nsIDocument> document;
nsCOMPtr<nsIContent> content;
nsCOMPtr<nsIContent> form;
*aObj = nsnull;
if (nsnull == mForm) {
return NS_OK;
}
content = do_QueryInterface(mForm);
if (content) {
result = content->GetDocument(*getter_AddRefs(document));
form = do_QueryInterface(mForm);
if (form) {
result = form->GetDocument(*getter_AddRefs(document));
if (NS_FAILED(result)) {
return result;
}

View File

@@ -358,8 +358,6 @@ nsHTMLImageElement::DeleteProperty(JSContext *aContext, JSObject *aObj, jsval aI
PRBool
nsHTMLImageElement::GetProperty(JSContext *aContext, JSObject *aObj, jsval aID, jsval *aVp)
{
PRBool result = PR_TRUE;
// XXX Security manager needs to be called
if (JSVAL_IS_STRING(aID)) {
char* cString = JS_GetStringBytes(JS_ValueToString(aContext, aID));

View File

@@ -489,7 +489,6 @@ nsresult nsEventListenerManager::SetJSEventListener(nsIScriptContext *aContext,
REFNSIID aIID,
PRBool aIsString)
{
nsIDOMEventListener* theListener = nsnull;
nsresult result = NS_OK;
nsListenerStruct *ls;

View File

@@ -848,16 +848,16 @@ nsFormControlList::GetNamedObject(JSContext* aContext, jsval aID, JSObject** aOb
char* str = JS_GetStringBytes(JS_ValueToString(aContext, aID));
nsAutoString name(str);
nsCOMPtr<nsIDocument> document;
nsCOMPtr<nsIContent> content;
nsCOMPtr<nsIContent> form;
*aObj = nsnull;
if (nsnull == mForm) {
return NS_OK;
}
content = do_QueryInterface(mForm);
if (content) {
result = content->GetDocument(*getter_AddRefs(document));
form = do_QueryInterface(mForm);
if (form) {
result = form->GetDocument(*getter_AddRefs(document));
if (NS_FAILED(result)) {
return result;
}

View File

@@ -358,8 +358,6 @@ nsHTMLImageElement::DeleteProperty(JSContext *aContext, JSObject *aObj, jsval aI
PRBool
nsHTMLImageElement::GetProperty(JSContext *aContext, JSObject *aObj, jsval aID, jsval *aVp)
{
PRBool result = PR_TRUE;
// XXX Security manager needs to be called
if (JSVAL_IS_STRING(aID)) {
char* cString = JS_GetStringBytes(JS_ValueToString(aContext, aID));