Closed
Bug 88901
Opened 24 years ago
Closed 24 years ago
Ill formed code in MozillDocument.cpp in Document::createAttributeNS
Categories
(Core :: XSLT, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: dbradley, Assigned: peterv)
Details
Attachments
(1 file)
1.03 KB,
patch
|
Details | Diff | Splinter Review |
Encountered the following warning:
d:\cvsroot\mozilla\extensions\transformiix\source\xml\dom\mozImpl\MozillaDocument.cpp(280)
: warning C4806: '&' : unsafe operation: no value of type 'bool' promoted to
type 'const unsigned int' can equal the given constant
This is caused by the test to NS_OK within NS_SUCCEEDED macro. I think it
shouldn't be comparing to NS_OK, or it shouldn't be using the macro. One or the
other but not both.
Attr* Document::createAttributeNS(const String& aNamespaceURI,
273 const String& aName)
274 {
275 NSI_FROM_TX_NULL_CHECK(Document)
276 nsCOMPtr<nsIDOMAttr> attr;
277
278 if (NS_SUCCEEDED(nsDocument->CreateAttributeNS(
279 aNamespaceURI.getConstNSString(), aName.getConstNSString(),
280 getter_AddRefs(attr)) == NS_OK))
281 return createAttribute(attr);
282 else
283 return NULL;
284 }
Reporter | ||
Updated•24 years ago
|
Summary: Ill formed code → Ill formed code in MozillDocument.cpp in Document::createAttributeNS
yep, the | == NS_OK| should go. --> peterv
Assignee: kvisco → peterv
Assignee | ||
Comment 4•24 years ago
|
||
r=sicking
Comment 6•24 years ago
|
||
sr=scc
Assignee | ||
Comment 7•24 years ago
|
||
Checked in. Thanks all.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
it's in
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•