fixed comments (so people are aware of the allocation policy)

This commit is contained in:
scc%mozilla.org 2000-10-05 01:07:40 +00:00
parent 64e5d4cbd1
commit 350a58ac5c
3 changed files with 9 additions and 3 deletions

View File

@ -65,7 +65,7 @@
6. Downsampling from nsString to nsCString can be lossy -- avoid it if possible!
7. Calls to ToNewCString() and ToNewUnicode() should be matched with calls to Recycle().
7. Calls to ToNewCString() and ToNewUnicode() should be matched with calls to nsMemory::Free().
***********************************************************************/
@ -468,6 +468,8 @@ inline void AddNullTerminator(nsStr& aDest) {
}
/**
* Deprecated: don't use |Recycle|, just call |nsMemory::Free| directly
*
* Return the given buffer to the heap manager. Calls allocator::Free()
* @return string length
*/

View File

@ -65,7 +65,7 @@
6. Downsampling from nsString to nsCString can be lossy -- avoid it if possible!
7. Calls to ToNewCString() and ToNewUnicode() should be matched with calls to Recycle().
7. Calls to ToNewCString() and ToNewUnicode() should be matched with calls to nsMemory::Free().
***********************************************************************/
@ -468,6 +468,8 @@ inline void AddNullTerminator(nsStr& aDest) {
}
/**
* Deprecated: don't use |Recycle|, just call |nsMemory::Free| directly
*
* Return the given buffer to the heap manager. Calls allocator::Free()
* @return string length
*/

View File

@ -65,7 +65,7 @@
6. Downsampling from nsString to nsCString can be lossy -- avoid it if possible!
7. Calls to ToNewCString() and ToNewUnicode() should be matched with calls to Recycle().
7. Calls to ToNewCString() and ToNewUnicode() should be matched with calls to nsMemory::Free().
***********************************************************************/
@ -468,6 +468,8 @@ inline void AddNullTerminator(nsStr& aDest) {
}
/**
* Deprecated: don't use |Recycle|, just call |nsMemory::Free| directly
*
* Return the given buffer to the heap manager. Calls allocator::Free()
* @return string length
*/