From bf4ceb4a1219d98d43b9d845fcdfaed38bc2a01d Mon Sep 17 00:00:00 2001 From: "tbogard%aol.net" Date: Sat, 27 Nov 1999 02:24:43 +0000 Subject: [PATCH] Removed const from GetTitle to get in sync with API. git-svn-id: svn://10.0.0.236/trunk@54491 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webshell/tests/viewer/nsBrowserWindow.cpp | 4 ++-- mozilla/webshell/tests/viewer/nsBrowserWindow.h | 2 +- mozilla/webshell/tests/viewer/nsXPBaseWindow.cpp | 2 +- mozilla/xpfe/appshell/src/nsWebShellWindow.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mozilla/webshell/tests/viewer/nsBrowserWindow.cpp b/mozilla/webshell/tests/viewer/nsBrowserWindow.cpp index 668941e7750..59528622160 100644 --- a/mozilla/webshell/tests/viewer/nsBrowserWindow.cpp +++ b/mozilla/webshell/tests/viewer/nsBrowserWindow.cpp @@ -1767,9 +1767,9 @@ nsBrowserWindow::SetTitle(const PRUnichar* aTitle) } NS_IMETHODIMP -nsBrowserWindow::GetTitle(const PRUnichar** aResult) +nsBrowserWindow::GetTitle(PRUnichar** aResult) { - *aResult = mTitle.GetUnicode(); + *aResult = mTitle.ToNewUnicode(); return NS_OK; } diff --git a/mozilla/webshell/tests/viewer/nsBrowserWindow.h b/mozilla/webshell/tests/viewer/nsBrowserWindow.h index e8cc5a8d9e9..a97d4725813 100644 --- a/mozilla/webshell/tests/viewer/nsBrowserWindow.h +++ b/mozilla/webshell/tests/viewer/nsBrowserWindow.h @@ -97,7 +97,7 @@ public: NS_IMETHOD SetChrome(PRUint32 aNewChromeMask); NS_IMETHOD GetChrome(PRUint32& aChromeMaskResult); NS_IMETHOD SetTitle(const PRUnichar* aTitle); - NS_IMETHOD GetTitle(const PRUnichar** aResult); + NS_IMETHOD GetTitle(PRUnichar** aResult); NS_IMETHOD SetStatus(const PRUnichar* aStatus); NS_IMETHOD GetStatus(const PRUnichar** aResult); NS_IMETHOD SetDefaultStatus(const PRUnichar* aStatus); diff --git a/mozilla/webshell/tests/viewer/nsXPBaseWindow.cpp b/mozilla/webshell/tests/viewer/nsXPBaseWindow.cpp index 0f7f73b5142..aec4ec7b9a7 100644 --- a/mozilla/webshell/tests/viewer/nsXPBaseWindow.cpp +++ b/mozilla/webshell/tests/viewer/nsXPBaseWindow.cpp @@ -362,7 +362,7 @@ NS_IMETHODIMP nsXPBaseWindow::SetTitle(const PRUnichar* aTitle) //--------------------------------------------------------------- NS_IMETHODIMP nsXPBaseWindow::GetTitle(const PRUnichar** aResult) { - *aResult = mTitle.GetUnicode(); + *aResult = mTitle.ToNewUnicode(); return NS_OK; } diff --git a/mozilla/xpfe/appshell/src/nsWebShellWindow.h b/mozilla/xpfe/appshell/src/nsWebShellWindow.h index 4559b582235..137cda8574c 100644 --- a/mozilla/xpfe/appshell/src/nsWebShellWindow.h +++ b/mozilla/xpfe/appshell/src/nsWebShellWindow.h @@ -231,7 +231,7 @@ public: NS_IMETHOD SetChrome(PRUint32 aNewChromeMask); NS_IMETHOD GetChrome(PRUint32& aChromeMaskResult); NS_IMETHOD SetTitle(const PRUnichar* aTitle); - NS_IMETHOD GetTitle(const PRUnichar** aResult); + NS_IMETHOD GetTitle(PRUnichar** aResult); NS_IMETHOD SetStatus(const PRUnichar* aStatus); NS_IMETHOD GetStatus(const PRUnichar** aResult); NS_IMETHOD SetDefaultStatus(const PRUnichar* aStatus);