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

git-svn-id: svn://10.0.0.236/trunk@80397 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scc%mozilla.org
2000-10-05 01:07:40 +00:00
parent fbd0ea0893
commit 0c546d8367
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
*/