From 4aa02a4d8ee3db6f7e1cf6d443ac82d9ec67061d Mon Sep 17 00:00:00 2001 From: "doronr%us.ibm.com" Date: Wed, 19 Jan 2005 17:57:38 +0000 Subject: [PATCH] try to fix linux/ppc bustage, not part of default build --- extensions/schema-validation/src/nsSchemaValidator.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/extensions/schema-validation/src/nsSchemaValidator.cpp b/extensions/schema-validation/src/nsSchemaValidator.cpp index 68ead1e4ea4e..27e97f505b70 100644 --- a/extensions/schema-validation/src/nsSchemaValidator.cpp +++ b/extensions/schema-validation/src/nsSchemaValidator.cpp @@ -560,9 +560,9 @@ nsresult nsSchemaValidator::ValidateRestrictionSimpletype(const nsAString & aNod /* http://w3.org/TR/xmlschema-2/#nonPositiveInteger */ case nsISchemaBuiltinType::BUILTIN_TYPE_NONPOSITIVEINTEGER: { rv = ValidateBuiltinTypeInteger(aNodeValue, totalDigits, - maxExclusive.IsEmpty() ? NS_LITERAL_STRING("1") : maxExclusive, + maxExclusive.IsEmpty() ? (const nsAString&)NS_LITERAL_STRING("1") : (const nsAString&)maxExclusive, minExclusive, - maxInclusive.IsEmpty() ? NS_LITERAL_STRING("0") : maxInclusive, + maxInclusive.IsEmpty() ? (const nsAString&)NS_LITERAL_STRING("0") : (const nsAString&)maxInclusive, minInclusive, &isValid); break; } @@ -570,8 +570,8 @@ nsresult nsSchemaValidator::ValidateRestrictionSimpletype(const nsAString & aNod /* http://www.w3.org/TR/xmlschema-2/#negativeInteger */ case nsISchemaBuiltinType::BUILTIN_TYPE_NEGATIVEINTEGER: { rv = ValidateBuiltinTypeInteger(aNodeValue, totalDigits, - maxExclusive.IsEmpty() ? NS_LITERAL_STRING("0") : maxExclusive, minExclusive, - maxInclusive.IsEmpty() ? NS_LITERAL_STRING("-1") : maxInclusive, minInclusive, + maxExclusive.IsEmpty() ? (const nsAString&)NS_LITERAL_STRING("0") : (const nsAString&)maxExclusive, minExclusive, + maxInclusive.IsEmpty() ? (const nsAString&)NS_LITERAL_STRING("-1") : (const nsAString&) maxInclusive, minInclusive, &isValid); break; }