зеркало из 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);
|
||||
PathExprItem* pxi;
|
||||
|
||||
while (pxi = (PathExprItem*)iter.next()) {
|
||||
while ((pxi = (PathExprItem*)iter.next())) {
|
||||
NodeSet* tmpNodes = 0;
|
||||
for (int i = 0; i < nodes->size(); 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.
|
||||
* @param dest the String to use when creating the String
|
||||
* 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.
|
||||
* @return the String representation of this Expr.
|
||||
**/
|
||||
|
@ -283,7 +283,7 @@ void PathExpr::toString(String& dest)
|
|||
pxi->expr->toString(dest);
|
||||
}
|
||||
|
||||
while (pxi = (PathExprItem*)iter.next()) {
|
||||
while ((pxi = (PathExprItem*)iter.next())) {
|
||||
switch (pxi->pathOp) {
|
||||
case DESCENDANT_OP:
|
||||
dest.append("//");
|
||||
|
|
|
@ -80,7 +80,7 @@ void PredicateList::evaluatePredicates(NodeSet* nodes, ContextState* cs)
|
|||
* position
|
||||
*/
|
||||
newNodes.clear();
|
||||
PRUint32 nIdx;
|
||||
int nIdx;
|
||||
for (nIdx = 0; nIdx < nodes->size(); nIdx++) {
|
||||
Node* node = nodes->get(nIdx);
|
||||
ExprResult* exprResult = expr->evaluate(node, cs);
|
||||
|
|
|
@ -258,7 +258,7 @@ void XSLTProcessor::parseStylesheetPI(String& data, String& type, String& href)
|
|||
String* buffer = &sink;
|
||||
|
||||
for (ccount = 0; ccount < size; ccount++) {
|
||||
char ch = data.charAt(ccount);
|
||||
UNICODE_CHAR ch = data.charAt(ccount);
|
||||
switch ( ch ) {
|
||||
case ' ' :
|
||||
if ( inLiteral ) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче