making string conversions explicit

git-svn-id: svn://10.0.0.236/trunk@66256 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scc%netscape.com
2000-04-18 05:51:09 +00:00
parent d35db85332
commit 7a2ecce5c3
2 changed files with 4 additions and 4 deletions

View File

@@ -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;

View File

@@ -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;