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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user