Bug 387584 - "ASSERTION: should not have buffer of zero size [@nsTArray_base::EnsureCapacity]". Patch by Sergey Yanovich <ynvich@gmail.com>. r+a=bsmedberg.

git-svn-id: svn://10.0.0.236/trunk@233415 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bent.mozilla%gmail.com 2007-08-30 16:59:34 +00:00
parent 761ccdc13a
commit 5adef2ffb2
2 changed files with 0 additions and 8 deletions

View File

@ -43,7 +43,6 @@
nsTArray_base::Header nsTArray_base::sEmptyHdr = { 0, 0, 0 };
#ifdef NS_BUILD_REFCNT_LOGGING
nsTArray_base::nsTArray_base()
: mHdr(&sEmptyHdr) {
MOZ_COUNT_CTOR(nsTArray_base);
@ -52,7 +51,6 @@ nsTArray_base::nsTArray_base()
nsTArray_base::~nsTArray_base() {
MOZ_COUNT_DTOR(nsTArray_base);
}
#endif // NS_BUILD_REFCNT_LOGGING
PRBool
nsTArray_base::EnsureCapacity(size_type capacity, size_type elemSize) {

View File

@ -85,14 +85,8 @@ class NS_COM_GLUE nsTArray_base {
#endif
protected:
#ifndef NS_BUILD_REFCNT_LOGGING
nsTArray_base()
: mHdr(&sEmptyHdr) {
}
#else
nsTArray_base();
~nsTArray_base();
#endif // NS_BUILD_REFCNT_LOGGING
// Resize the storage if necessary to achieve the requested capacity.
// @param capacity The requested number of array elements.