making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66256 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -390,7 +390,7 @@ nsTextServicesDocument::GetCurrentTextBlock(nsString *aStr)
|
||||
if (!aStr)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
*aStr = "";
|
||||
aStr->SetLength(0);
|
||||
|
||||
if (!mIterator)
|
||||
return NS_ERROR_FAILURE;
|
||||
@@ -4152,7 +4152,7 @@ nsTextServicesDocument::CreateOffsetTable(nsString *aStr)
|
||||
ClearOffsetTable();
|
||||
|
||||
if (aStr)
|
||||
*aStr = "";
|
||||
aStr->SetLength(0);
|
||||
|
||||
if (mIteratorStatus == nsTextServicesDocument::eIsDone)
|
||||
return NS_OK;
|
||||
|
||||
@@ -390,7 +390,7 @@ nsTextServicesDocument::GetCurrentTextBlock(nsString *aStr)
|
||||
if (!aStr)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
*aStr = "";
|
||||
aStr->SetLength(0);
|
||||
|
||||
if (!mIterator)
|
||||
return NS_ERROR_FAILURE;
|
||||
@@ -4152,7 +4152,7 @@ nsTextServicesDocument::CreateOffsetTable(nsString *aStr)
|
||||
ClearOffsetTable();
|
||||
|
||||
if (aStr)
|
||||
*aStr = "";
|
||||
aStr->SetLength(0);
|
||||
|
||||
if (mIteratorStatus == nsTextServicesDocument::eIsDone)
|
||||
return NS_OK;
|
||||
|
||||
Reference in New Issue
Block a user