Bug 339309 do_CreateInstance(NS_SCHEMAVALIDATOR_CONTRACTID) r=beaufour,doron

git-svn-id: svn://10.0.0.236/trunk@198454 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
neil%parkwaycc.co.uk
2006-05-26 14:40:04 +00:00
parent 619bfa0bcb
commit ea3242defb
3 changed files with 9 additions and 9 deletions

View File

@@ -217,7 +217,7 @@ nsXFormsUtilityService::GetMonths(const nsAString & aValue,
*aMonths = 0;
nsCOMPtr<nsISchemaDuration> duration;
nsCOMPtr<nsISchemaValidator> schemaValidator =
do_GetService(NS_SCHEMAVALIDATOR_CONTRACTID);
do_CreateInstance(NS_SCHEMAVALIDATOR_CONTRACTID);
NS_ENSURE_TRUE(schemaValidator, NS_ERROR_FAILURE);
nsresult rv = schemaValidator->ValidateBuiltinTypeDuration(aValue,
@@ -251,7 +251,7 @@ nsXFormsUtilityService::GetSeconds(const nsAString & aValue,
{
nsCOMPtr<nsISchemaDuration> duration;
nsCOMPtr<nsISchemaValidator> schemaValidator =
do_GetService(NS_SCHEMAVALIDATOR_CONTRACTID);
do_CreateInstance(NS_SCHEMAVALIDATOR_CONTRACTID);
NS_ENSURE_TRUE(schemaValidator, NS_ERROR_FAILURE);
nsresult rv = schemaValidator->ValidateBuiltinTypeDuration(aValue,
@@ -290,7 +290,7 @@ nsXFormsUtilityService::GetSecondsFromDateTime(const nsAString & aValue,
{
PRTime dateTime;
nsCOMPtr<nsISchemaValidator> schemaValidator =
do_GetService(NS_SCHEMAVALIDATOR_CONTRACTID);
do_CreateInstance(NS_SCHEMAVALIDATOR_CONTRACTID);
NS_ENSURE_TRUE(schemaValidator, NS_ERROR_FAILURE);
nsresult rv = schemaValidator->ValidateBuiltinTypeDateTime(aValue, &dateTime);
@@ -378,7 +378,7 @@ nsXFormsUtilityService::GetDaysFromDateTime(const nsAString & aValue,
PRTime date;
nsCOMPtr<nsISchemaValidator> schemaValidator =
do_GetService(NS_SCHEMAVALIDATOR_CONTRACTID);
do_CreateInstance(NS_SCHEMAVALIDATOR_CONTRACTID);
NS_ENSURE_TRUE(schemaValidator, NS_ERROR_FAILURE);
// aValue could be a xsd:date or a xsd:dateTime. If it is a dateTime, we