making string conversions explicit

git-svn-id: svn://10.0.0.236/trunk@66852 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scc%netscape.com
2000-04-22 10:31:38 +00:00
parent 5a9e9b10c1
commit fe0f1e89f2
6 changed files with 8 additions and 8 deletions

View File

@@ -1863,7 +1863,7 @@ nsComboboxControlFrame::SelectionChanged()
}
if (shouldSetValue) {
if (mTextStr.Length() == 0) {
nsAutoString space(" ");
nsAutoString space; space.AssignWithConversion(" ");
rv = mDisplayContent->SetText(space.GetUnicode(), space.Length(), PR_TRUE);
} else {
rv = mDisplayContent->SetText(mTextStr.GetUnicode(), mTextStr.Length(), PR_TRUE);