From 0c546d8367f6bb9a4d79b42bb2eb20046fe10d43 Mon Sep 17 00:00:00 2001 From: "scc%mozilla.org" Date: Thu, 5 Oct 2000 01:07:40 +0000 Subject: [PATCH] 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 --- mozilla/string/obsolete/nsStr.h | 4 +++- mozilla/xpcom/ds/nsStr.h | 4 +++- mozilla/xpcom/string/obsolete/nsStr.h | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/mozilla/string/obsolete/nsStr.h b/mozilla/string/obsolete/nsStr.h index 7c58d84ac33..631687c8cf1 100644 --- a/mozilla/string/obsolete/nsStr.h +++ b/mozilla/string/obsolete/nsStr.h @@ -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 */ diff --git a/mozilla/xpcom/ds/nsStr.h b/mozilla/xpcom/ds/nsStr.h index 7c58d84ac33..631687c8cf1 100644 --- a/mozilla/xpcom/ds/nsStr.h +++ b/mozilla/xpcom/ds/nsStr.h @@ -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 */ diff --git a/mozilla/xpcom/string/obsolete/nsStr.h b/mozilla/xpcom/string/obsolete/nsStr.h index 7c58d84ac33..631687c8cf1 100644 --- a/mozilla/xpcom/string/obsolete/nsStr.h +++ b/mozilla/xpcom/string/obsolete/nsStr.h @@ -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 */