fixing code that relied on implicit string construction

This commit is contained in:
scc%mozilla.org 2000-08-20 00:52:22 +00:00
Родитель 08c42bc92f
Коммит d71a23b864
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -372,7 +372,7 @@ static void GetProfileDefaultsFolder(nsFileSpec& outSpec)
if (NS_SUCCEEDED(rv)) { if (NS_SUCCEEDED(rv)) {
nsFileSpec tmpdir; nsFileSpec tmpdir;
tmpdir = cwd; tmpdir = cwd;
tmpdir += (const PRUnichar*) lc_name; tmpdir += nsAutoString(NS_STATIC_CAST(const PRUnichar*, lc_name));
if (tmpdir.Exists()) if (tmpdir.Exists())
cwd = tmpdir; cwd = tmpdir;

Просмотреть файл

@ -139,7 +139,7 @@ void GetAttribute( nsIXULWindow* inWindow, const nsAutoString& inAttribute, nsAu
{ {
nsCOMPtr<nsIDOMElement> webshellElement( do_QueryInterface(node)); nsCOMPtr<nsIDOMElement> webshellElement( do_QueryInterface(node));
if ( webshellElement.get() ) if ( webshellElement.get() )
webshellElement->GetAttribute(inAttribute.GetUnicode(), outValue ); webshellElement->GetAttribute(inAttribute, outValue );
} }
} }
} }

Просмотреть файл

@ -915,7 +915,7 @@ NS_IMETHODIMP nsXULWindow::ContentShellAdded(nsIDocShellTreeItem* aContentShell,
} }
if (!shellInfo) { if (!shellInfo) {
shellInfo = new nsContentShellInfo(aID, aPrimary, aContentShell); shellInfo = new nsContentShellInfo(nsAutoString(aID), aPrimary, aContentShell);
mContentShells.AppendElement((void*)shellInfo); mContentShells.AppendElement((void*)shellInfo);
} }