зеркало из https://github.com/mozilla/pjs.git
Bug 360062. rid dom/src/base of nsCRT::strdup. r=timeless, sr=jst
This commit is contained in:
Родитель
0e539c0e97
Коммит
f5135a114d
|
@ -40,6 +40,7 @@
|
|||
#include "nscore.h"
|
||||
#include "nsDOMClassInfo.h"
|
||||
#include "nsCRT.h"
|
||||
#include "nsCRTGlue.h"
|
||||
#include "nsIServiceManager.h"
|
||||
#include "nsICategoryManager.h"
|
||||
#include "nsIComponentRegistrar.h"
|
||||
|
@ -3281,7 +3282,7 @@ nsDOMClassInfo::GetFlags(PRUint32 *aFlags)
|
|||
NS_IMETHODIMP
|
||||
nsDOMClassInfo::GetClassName(char **aClassName)
|
||||
{
|
||||
*aClassName = nsCRT::strdup(mData->mName);
|
||||
*aClassName = NS_strdup(mData->mName);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsCRT.h"
|
||||
#include "nsCRTGlue.h"
|
||||
#include "nsDOMClassInfo.h"
|
||||
#include "nsDOMError.h"
|
||||
#include "nsDOMException.h"
|
||||
|
@ -217,7 +217,7 @@ NS_IMETHODIMP
|
|||
nsBaseDOMException::GetMessage(char **aMessage)
|
||||
{
|
||||
if (mMessage) {
|
||||
*aMessage = nsCRT::strdup(mMessage);
|
||||
*aMessage = NS_strdup(mMessage);
|
||||
} else {
|
||||
*aMessage = nsnull;
|
||||
}
|
||||
|
@ -241,7 +241,7 @@ nsBaseDOMException::GetName(char **aName)
|
|||
NS_ENSURE_ARG_POINTER(aName);
|
||||
|
||||
if (mName) {
|
||||
*aName = nsCRT::strdup(mName);
|
||||
*aName = NS_strdup(mName);
|
||||
} else {
|
||||
*aName = nsnull;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче