More nsString fixes for BeOS

git-svn-id: svn://10.0.0.236/trunk@67606 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cls%seawood.org 2000-04-29 01:14:31 +00:00
parent fcb77f0d1f
commit b4e3633b13

View File

@ -1141,7 +1141,7 @@ FileSystemDataSource::GetName(nsIRDFResource *source, nsIRDFLiteral **aResult)
#ifdef XP_BEOS
// under BEOS, try and get the "META:title" attribute (if its a file)
nsAutoString theURI(uri);
nsAutoString theURI; theURI.AssignWithConversion(uri);
if (theURI.Find(netPositiveDir) == 0)
{
nsFileSpec spec(url);
@ -1160,7 +1160,7 @@ FileSystemDataSource::GetName(nsIRDFResource *source, nsIRDFLiteral **aResult)
0, beNameAttr, sizeof(beNameAttr-1))) > 0)
{
beNameAttr[len] = '\0';
name = beNameAttr;
name.AssignWithConversion(beNameAttr);
}
}
}
@ -1320,7 +1320,8 @@ FileSystemDataSource::getNetPositiveURL(nsIRDFResource *source, nsString aFileUR
0, beURLattr, sizeof(beURLattr-1))) > 0)
{
beURLattr[len] = '\0';
nsAutoString bookmarkURL(beURLattr);
nsAutoString bookmarkURL;
bookmarkURL.AssignWithConversion(beURLattr);
rv = gRDFService->GetLiteral(bookmarkURL.GetUnicode(),
urlLiteral);
}