Bug 1402255 - Change nsIBaseWindow::title from wstring to AString. r=janv.

Because nsAString is nicer to work with than char16_t*. The patch relatedly
changes nsIEmbeddingSiteWindow::title and nsIWindowMediator::updateWindowTitle
as well.
This commit is contained in:
Nicholas Nethercote
2017-09-25 13:10:51 +10:00
parent cf69fcf897
commit d161939aec
16 changed files with 31 additions and 39 deletions

View File

@@ -720,7 +720,7 @@ nsDocShellTreeOwner::SetFocus()
}
NS_IMETHODIMP
nsDocShellTreeOwner::GetTitle(char16_t** aTitle)
nsDocShellTreeOwner::GetTitle(nsAString& aTitle)
{
nsCOMPtr<nsIEmbeddingSiteWindow> ownerWin = GetOwnerWin();
if (ownerWin) {
@@ -730,7 +730,7 @@ nsDocShellTreeOwner::GetTitle(char16_t** aTitle)
}
NS_IMETHODIMP
nsDocShellTreeOwner::SetTitle(const char16_t* aTitle)
nsDocShellTreeOwner::SetTitle(const nsAString& aTitle)
{
nsCOMPtr<nsIEmbeddingSiteWindow> ownerWin = GetOwnerWin();
if (ownerWin) {