fixes for nsString changes

This commit is contained in:
rods%netscape.com 2000-04-28 21:00:27 +00:00
parent d3944be876
commit 5656b15a3b
3 changed files with 3 additions and 5 deletions

View File

@ -94,7 +94,7 @@ nsPolygonFrame::Init(nsIPresContext* aPresContext,
nsAutoString type;
mContent->GetAttribute(kNameSpaceID_None, nsHTMLAtoms::type, type);
if (type.EqualsIgnoreCase("swatch") || type.Equals(""))
if (type.EqualsIgnoreCase(NS_ConvertASCIItoUCS2("swatch")) || type.IsEmpty())
{
//mPolygon = new nsStdPolygon();
//mPolygon->Init(mContent);

View File

@ -444,7 +444,7 @@ nsSVGContainerFrame::Release(void)
NS_IMETHODIMP
nsSVGContainerFrame::GetFrameName(nsString& aResult) const
{
aResult = "nsSVGContainerFrame";
aResult = NS_ConvertASCIItoUCS2("nsSVGContainerFrame");
return NS_OK;
}

View File

@ -46,9 +46,7 @@ void nsSVGAtoms::AddRefAtoms() {
place to do this, if you don't want a permanent, "well-known" ID.
*/
if (NS_SUCCEEDED(NS_NewNameSpaceManager(&gNameSpaceManager))) {
// gNameSpaceManager->CreateRootNameSpace(namespace);
nsAutoString nameSpace(kSVGNameSpace);
gNameSpaceManager->RegisterNameSpace(nameSpace, nameSpaceID);
gNameSpaceManager->RegisterNameSpace(NS_ConvertASCIItoUCS2(kSVGNameSpace), nameSpaceID);
} else {
NS_ASSERTION(0, "failed to create SVG atoms namespace manager");
}