Remove dead nsCString::ToNewString() code usage. r=dbaron, rs=scc.

This commit is contained in:
jaggernaut%netscape.com 2001-10-14 05:03:26 +00:00
parent b9f4fd8c36
commit a355418983

View File

@ -434,7 +434,7 @@ nsresult DeviceContextImpl::AliasFont(const nsString& aFont,
if (nsnull != mFontAliasTable) {
if (aForceAlias || (NS_OK != CheckFontExistence(aFont))) {
if (NS_OK == CheckFontExistence(aAlias)) {
nsString* entry = aAlias.ToNewString();
nsString* entry = new nsString(aAlias);
if (nsnull != entry) {
FontAliasKey key(aFont);
mFontAliasTable->Put(&key, entry);
@ -444,7 +444,7 @@ nsresult DeviceContextImpl::AliasFont(const nsString& aFont,
}
}
else if ((0 < aAltAlias.Length()) && (NS_OK == CheckFontExistence(aAltAlias))) {
nsString* entry = aAltAlias.ToNewString();
nsString* entry = new nsString(aAltAlias);
if (nsnull != entry) {
FontAliasKey key(aFont);
mFontAliasTable->Put(&key, entry);