зеркало из https://github.com/mozilla/gecko-dev.git
Warning fixes. r=sicking, rs=jst.
This commit is contained in:
Родитель
dc4cb6ecf9
Коммит
6db41368ef
|
@ -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 ) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче