Loading string/obsolete/nsXPIDLString.cpp +5 −4 Original line number Diff line number Diff line Loading @@ -17,13 +17,14 @@ */ #include "nsDebug.h" #include "nsIAllocator.h" #include "nsXPIDLString.h" #include "plstr.h" // XXX change to use nsIAllocator or whatever #define XPIDL_STRING_ALLOC(__size) new PRUnichar[(__size)] #define XPIDL_CSTRING_ALLOC(__size) new char[(__size)] #define XPIDL_FREE(__ptr) delete[] (__ptr) // If the allocator changes, fix it here. #define XPIDL_STRING_ALLOC(__len) ((PRUnichar*) nsAllocator::Alloc((__len) * sizeof(PRUnichar))) #define XPIDL_CSTRING_ALLOC(__len) ((char*) nsAllocator::Alloc((__len) * sizeof(char))) #define XPIDL_FREE(__ptr) (nsAllocator::Free(__ptr)) //////////////////////////////////////////////////////////////////////// // nsXPIDLString Loading xpcom/ds/nsXPIDLString.cpp +5 −4 Original line number Diff line number Diff line Loading @@ -17,13 +17,14 @@ */ #include "nsDebug.h" #include "nsIAllocator.h" #include "nsXPIDLString.h" #include "plstr.h" // XXX change to use nsIAllocator or whatever #define XPIDL_STRING_ALLOC(__size) new PRUnichar[(__size)] #define XPIDL_CSTRING_ALLOC(__size) new char[(__size)] #define XPIDL_FREE(__ptr) delete[] (__ptr) // If the allocator changes, fix it here. #define XPIDL_STRING_ALLOC(__len) ((PRUnichar*) nsAllocator::Alloc((__len) * sizeof(PRUnichar))) #define XPIDL_CSTRING_ALLOC(__len) ((char*) nsAllocator::Alloc((__len) * sizeof(char))) #define XPIDL_FREE(__ptr) (nsAllocator::Free(__ptr)) //////////////////////////////////////////////////////////////////////// // nsXPIDLString Loading xpcom/src/nsXPIDLString.cpp +5 −4 Original line number Diff line number Diff line Loading @@ -17,13 +17,14 @@ */ #include "nsDebug.h" #include "nsIAllocator.h" #include "nsXPIDLString.h" #include "plstr.h" // XXX change to use nsIAllocator or whatever #define XPIDL_STRING_ALLOC(__size) new PRUnichar[(__size)] #define XPIDL_CSTRING_ALLOC(__size) new char[(__size)] #define XPIDL_FREE(__ptr) delete[] (__ptr) // If the allocator changes, fix it here. #define XPIDL_STRING_ALLOC(__len) ((PRUnichar*) nsAllocator::Alloc((__len) * sizeof(PRUnichar))) #define XPIDL_CSTRING_ALLOC(__len) ((char*) nsAllocator::Alloc((__len) * sizeof(char))) #define XPIDL_FREE(__ptr) (nsAllocator::Free(__ptr)) //////////////////////////////////////////////////////////////////////// // nsXPIDLString Loading xpcom/string/obsolete/nsXPIDLString.cpp +5 −4 Original line number Diff line number Diff line Loading @@ -17,13 +17,14 @@ */ #include "nsDebug.h" #include "nsIAllocator.h" #include "nsXPIDLString.h" #include "plstr.h" // XXX change to use nsIAllocator or whatever #define XPIDL_STRING_ALLOC(__size) new PRUnichar[(__size)] #define XPIDL_CSTRING_ALLOC(__size) new char[(__size)] #define XPIDL_FREE(__ptr) delete[] (__ptr) // If the allocator changes, fix it here. #define XPIDL_STRING_ALLOC(__len) ((PRUnichar*) nsAllocator::Alloc((__len) * sizeof(PRUnichar))) #define XPIDL_CSTRING_ALLOC(__len) ((char*) nsAllocator::Alloc((__len) * sizeof(char))) #define XPIDL_FREE(__ptr) (nsAllocator::Free(__ptr)) //////////////////////////////////////////////////////////////////////// // nsXPIDLString Loading Loading
string/obsolete/nsXPIDLString.cpp +5 −4 Original line number Diff line number Diff line Loading @@ -17,13 +17,14 @@ */ #include "nsDebug.h" #include "nsIAllocator.h" #include "nsXPIDLString.h" #include "plstr.h" // XXX change to use nsIAllocator or whatever #define XPIDL_STRING_ALLOC(__size) new PRUnichar[(__size)] #define XPIDL_CSTRING_ALLOC(__size) new char[(__size)] #define XPIDL_FREE(__ptr) delete[] (__ptr) // If the allocator changes, fix it here. #define XPIDL_STRING_ALLOC(__len) ((PRUnichar*) nsAllocator::Alloc((__len) * sizeof(PRUnichar))) #define XPIDL_CSTRING_ALLOC(__len) ((char*) nsAllocator::Alloc((__len) * sizeof(char))) #define XPIDL_FREE(__ptr) (nsAllocator::Free(__ptr)) //////////////////////////////////////////////////////////////////////// // nsXPIDLString Loading
xpcom/ds/nsXPIDLString.cpp +5 −4 Original line number Diff line number Diff line Loading @@ -17,13 +17,14 @@ */ #include "nsDebug.h" #include "nsIAllocator.h" #include "nsXPIDLString.h" #include "plstr.h" // XXX change to use nsIAllocator or whatever #define XPIDL_STRING_ALLOC(__size) new PRUnichar[(__size)] #define XPIDL_CSTRING_ALLOC(__size) new char[(__size)] #define XPIDL_FREE(__ptr) delete[] (__ptr) // If the allocator changes, fix it here. #define XPIDL_STRING_ALLOC(__len) ((PRUnichar*) nsAllocator::Alloc((__len) * sizeof(PRUnichar))) #define XPIDL_CSTRING_ALLOC(__len) ((char*) nsAllocator::Alloc((__len) * sizeof(char))) #define XPIDL_FREE(__ptr) (nsAllocator::Free(__ptr)) //////////////////////////////////////////////////////////////////////// // nsXPIDLString Loading
xpcom/src/nsXPIDLString.cpp +5 −4 Original line number Diff line number Diff line Loading @@ -17,13 +17,14 @@ */ #include "nsDebug.h" #include "nsIAllocator.h" #include "nsXPIDLString.h" #include "plstr.h" // XXX change to use nsIAllocator or whatever #define XPIDL_STRING_ALLOC(__size) new PRUnichar[(__size)] #define XPIDL_CSTRING_ALLOC(__size) new char[(__size)] #define XPIDL_FREE(__ptr) delete[] (__ptr) // If the allocator changes, fix it here. #define XPIDL_STRING_ALLOC(__len) ((PRUnichar*) nsAllocator::Alloc((__len) * sizeof(PRUnichar))) #define XPIDL_CSTRING_ALLOC(__len) ((char*) nsAllocator::Alloc((__len) * sizeof(char))) #define XPIDL_FREE(__ptr) (nsAllocator::Free(__ptr)) //////////////////////////////////////////////////////////////////////// // nsXPIDLString Loading
xpcom/string/obsolete/nsXPIDLString.cpp +5 −4 Original line number Diff line number Diff line Loading @@ -17,13 +17,14 @@ */ #include "nsDebug.h" #include "nsIAllocator.h" #include "nsXPIDLString.h" #include "plstr.h" // XXX change to use nsIAllocator or whatever #define XPIDL_STRING_ALLOC(__size) new PRUnichar[(__size)] #define XPIDL_CSTRING_ALLOC(__size) new char[(__size)] #define XPIDL_FREE(__ptr) delete[] (__ptr) // If the allocator changes, fix it here. #define XPIDL_STRING_ALLOC(__len) ((PRUnichar*) nsAllocator::Alloc((__len) * sizeof(PRUnichar))) #define XPIDL_CSTRING_ALLOC(__len) ((char*) nsAllocator::Alloc((__len) * sizeof(char))) #define XPIDL_FREE(__ptr) (nsAllocator::Free(__ptr)) //////////////////////////////////////////////////////////////////////// // nsXPIDLString Loading