Warning fixes. r=sicking, rs=jst.

This commit is contained in:
peterv%netscape.com 2001-10-03 01:27:04 +00:00
Родитель dc4cb6ecf9
Коммит 6db41368ef
3 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -112,7 +112,7 @@ ExprResult* PathExpr::evaluate(Node* context, ContextState* cs)
ListIterator iter(&expressions); ListIterator iter(&expressions);
PathExprItem* pxi; PathExprItem* pxi;
while (pxi = (PathExprItem*)iter.next()) { while ((pxi = (PathExprItem*)iter.next())) {
NodeSet* tmpNodes = 0; NodeSet* tmpNodes = 0;
for (int i = 0; i < nodes->size(); i++) { for (int i = 0; i < nodes->size(); i++) {
Node* node = nodes->get(i); Node* node = nodes->get(i);
@ -268,7 +268,7 @@ MBool PathExpr::matches(Node* node, Node* context, ContextState* cs)
* Returns the String representation of this Expr. * Returns the String representation of this Expr.
* @param dest the String to use when creating the String * @param dest the String to use when creating the String
* representation. The String representation will be appended to * representation. The String representation will be appended to
* any data in the destination String, to allow cascading calls to * any data in the destination String, to allow cascading calls to
* other #toString() methods for Expressions. * other #toString() methods for Expressions.
* @return the String representation of this Expr. * @return the String representation of this Expr.
**/ **/
@ -283,7 +283,7 @@ void PathExpr::toString(String& dest)
pxi->expr->toString(dest); pxi->expr->toString(dest);
} }
while (pxi = (PathExprItem*)iter.next()) { while ((pxi = (PathExprItem*)iter.next())) {
switch (pxi->pathOp) { switch (pxi->pathOp) {
case DESCENDANT_OP: case DESCENDANT_OP:
dest.append("//"); dest.append("//");

Просмотреть файл

@ -80,7 +80,7 @@ void PredicateList::evaluatePredicates(NodeSet* nodes, ContextState* cs)
* position * position
*/ */
newNodes.clear(); newNodes.clear();
PRUint32 nIdx; int nIdx;
for (nIdx = 0; nIdx < nodes->size(); nIdx++) { for (nIdx = 0; nIdx < nodes->size(); nIdx++) {
Node* node = nodes->get(nIdx); Node* node = nodes->get(nIdx);
ExprResult* exprResult = expr->evaluate(node, cs); ExprResult* exprResult = expr->evaluate(node, cs);

Просмотреть файл

@ -258,7 +258,7 @@ void XSLTProcessor::parseStylesheetPI(String& data, String& type, String& href)
String* buffer = &sink; String* buffer = &sink;
for (ccount = 0; ccount < size; ccount++) { for (ccount = 0; ccount < size; ccount++) {
char ch = data.charAt(ccount); UNICODE_CHAR ch = data.charAt(ccount);
switch ( ch ) { switch ( ch ) {
case ' ' : case ' ' :
if ( inLiteral ) { if ( inLiteral ) {