зеркало из https://github.com/mozilla/gecko-dev.git
fixing code that relied on implicit string construction
This commit is contained in:
Родитель
08c42bc92f
Коммит
d71a23b864
|
@ -372,7 +372,7 @@ static void GetProfileDefaultsFolder(nsFileSpec& outSpec)
|
|||
if (NS_SUCCEEDED(rv)) {
|
||||
nsFileSpec tmpdir;
|
||||
tmpdir = cwd;
|
||||
tmpdir += (const PRUnichar*) lc_name;
|
||||
tmpdir += nsAutoString(NS_STATIC_CAST(const PRUnichar*, lc_name));
|
||||
|
||||
if (tmpdir.Exists())
|
||||
cwd = tmpdir;
|
||||
|
|
|
@ -139,7 +139,7 @@ void GetAttribute( nsIXULWindow* inWindow, const nsAutoString& inAttribute, nsAu
|
|||
{
|
||||
nsCOMPtr<nsIDOMElement> webshellElement( do_QueryInterface(node));
|
||||
if ( webshellElement.get() )
|
||||
webshellElement->GetAttribute(inAttribute.GetUnicode(), outValue );
|
||||
webshellElement->GetAttribute(inAttribute, outValue );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -915,7 +915,7 @@ NS_IMETHODIMP nsXULWindow::ContentShellAdded(nsIDocShellTreeItem* aContentShell,
|
|||
}
|
||||
|
||||
if (!shellInfo) {
|
||||
shellInfo = new nsContentShellInfo(aID, aPrimary, aContentShell);
|
||||
shellInfo = new nsContentShellInfo(nsAutoString(aID), aPrimary, aContentShell);
|
||||
mContentShells.AppendElement((void*)shellInfo);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче