fixing code that relied on implicit string construction

git-svn-id: svn://10.0.0.236/trunk@76718 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scc%mozilla.org
2000-08-19 21:22:45 +00:00
parent 2536a06ef0
commit b55d322019
8 changed files with 10 additions and 10 deletions

View File

@@ -935,7 +935,7 @@ nsresult CRTFControlWord::Consume(PRUnichar aChar,nsScanner& aScanner,PRInt32 aM
* @param
* @return nsresult
*/
CRTFContent::CRTFContent(PRUnichar* aKey) : CToken(aKey) {
CRTFContent::CRTFContent(PRUnichar* aKey) : CToken(nsAutoString(aKey)) {
}

View File

@@ -812,8 +812,8 @@ int nsExpatTokenizer::HandleExternalEntityRef(XML_Parser parser,
#ifdef XML_DTD
// Load the external entity into a buffer
nsCOMPtr<nsIInputStream> in = nsnull;
nsAutoString urlSpec = (const PRUnichar*) systemId;
nsAutoString baseURL = (const PRUnichar*) base;
nsAutoString urlSpec( (const PRUnichar*) systemId );
nsAutoString baseURL( (const PRUnichar*) base );
nsAutoString absURL;
nsresult rv = OpenInputStream(urlSpec, baseURL, getter_AddRefs(in), &absURL);

View File

@@ -1486,7 +1486,7 @@ nsHTMLToTXTSinkStream::Write(const nsString& aString)
// Note that we are in whitespace.
mInWhitespace = PR_TRUE;
if(!mCacheLine) {
nsAutoString whitestring=aString[nextpos];
nsAutoString whitestring(aString[nextpos]);
WriteSimple(whitestring);
} else {
offsetIntoBuffer = aString.GetUnicode();