fixed ugly name |nsXXXBufferHandle| --> |nsFlexBufferHandle|; hey, it may not be perfect, but it's better than 'XXX'

This commit is contained in:
scc%mozilla.org 2000-09-13 02:27:11 +00:00
Родитель 92b73490d6
Коммит 2f527d624e
6 изменённых файлов: 15 добавлений и 15 удалений

Просмотреть файл

@ -134,11 +134,11 @@ class nsSharedBufferHandle
// need a name for this
template <class CharT>
class nsXXXBufferHandle
class nsFlexBufferHandle
: public nsSharedBufferHandle<CharT>
{
public:
nsXXXBufferHandle( CharT* aDataStart, CharT* aDataEnd, CharT* aStorageStart, CharT* aStorageEnd )
nsFlexBufferHandle( CharT* aDataStart, CharT* aDataEnd, CharT* aStorageStart, CharT* aStorageEnd )
: nsSharedBufferHandle<CharT>(aDataStart, aDataEnd),
mStorageStart(aStorageStart),
mStorageEnd(aStorageEnd)
@ -172,7 +172,7 @@ nsSharedBufferHandle<CharT>::~nsSharedBufferHandle()
{
CharT* string_storage = this->mDataStart;
if ( mFlags & kIsStorageDefinedSeparately )
string_storage = NS_REINTERPRET_CAST(nsXXXBufferHandle<CharT>*, this)->StorageStart();
string_storage = NS_REINTERPRET_CAST(nsFlexBufferHandle<CharT>*, this)->StorageStart();
nsMemory::Free(string_storage);
}
}

Просмотреть файл

@ -53,11 +53,11 @@ class nsSharedBufferList
public:
class Buffer
: public nsXXXBufferHandle<PRUnichar>
: public nsFlexBufferHandle<PRUnichar>
{
public:
Buffer( PRUnichar* aDataStart, PRUnichar* aDataEnd, PRUnichar* aStorageStart, PRUnichar* aStorageEnd, PRBool aIsSingleAllocation=PR_FALSE )
: nsXXXBufferHandle<PRUnichar>(aDataStart, aDataEnd, aStorageStart, aStorageEnd)
: nsFlexBufferHandle<PRUnichar>(aDataStart, aDataEnd, aStorageStart, aStorageEnd)
{
if ( aIsSingleAllocation )
this->mFlags |= this->kIsSingleAllocationWithBuffer;

Просмотреть файл

@ -134,11 +134,11 @@ class nsSharedBufferHandle
// need a name for this
template <class CharT>
class nsXXXBufferHandle
class nsFlexBufferHandle
: public nsSharedBufferHandle<CharT>
{
public:
nsXXXBufferHandle( CharT* aDataStart, CharT* aDataEnd, CharT* aStorageStart, CharT* aStorageEnd )
nsFlexBufferHandle( CharT* aDataStart, CharT* aDataEnd, CharT* aStorageStart, CharT* aStorageEnd )
: nsSharedBufferHandle<CharT>(aDataStart, aDataEnd),
mStorageStart(aStorageStart),
mStorageEnd(aStorageEnd)
@ -172,7 +172,7 @@ nsSharedBufferHandle<CharT>::~nsSharedBufferHandle()
{
CharT* string_storage = this->mDataStart;
if ( mFlags & kIsStorageDefinedSeparately )
string_storage = NS_REINTERPRET_CAST(nsXXXBufferHandle<CharT>*, this)->StorageStart();
string_storage = NS_REINTERPRET_CAST(nsFlexBufferHandle<CharT>*, this)->StorageStart();
nsMemory::Free(string_storage);
}
}

Просмотреть файл

@ -53,11 +53,11 @@ class nsSharedBufferList
public:
class Buffer
: public nsXXXBufferHandle<PRUnichar>
: public nsFlexBufferHandle<PRUnichar>
{
public:
Buffer( PRUnichar* aDataStart, PRUnichar* aDataEnd, PRUnichar* aStorageStart, PRUnichar* aStorageEnd, PRBool aIsSingleAllocation=PR_FALSE )
: nsXXXBufferHandle<PRUnichar>(aDataStart, aDataEnd, aStorageStart, aStorageEnd)
: nsFlexBufferHandle<PRUnichar>(aDataStart, aDataEnd, aStorageStart, aStorageEnd)
{
if ( aIsSingleAllocation )
this->mFlags |= this->kIsSingleAllocationWithBuffer;

Просмотреть файл

@ -134,11 +134,11 @@ class nsSharedBufferHandle
// need a name for this
template <class CharT>
class nsXXXBufferHandle
class nsFlexBufferHandle
: public nsSharedBufferHandle<CharT>
{
public:
nsXXXBufferHandle( CharT* aDataStart, CharT* aDataEnd, CharT* aStorageStart, CharT* aStorageEnd )
nsFlexBufferHandle( CharT* aDataStart, CharT* aDataEnd, CharT* aStorageStart, CharT* aStorageEnd )
: nsSharedBufferHandle<CharT>(aDataStart, aDataEnd),
mStorageStart(aStorageStart),
mStorageEnd(aStorageEnd)
@ -172,7 +172,7 @@ nsSharedBufferHandle<CharT>::~nsSharedBufferHandle()
{
CharT* string_storage = this->mDataStart;
if ( mFlags & kIsStorageDefinedSeparately )
string_storage = NS_REINTERPRET_CAST(nsXXXBufferHandle<CharT>*, this)->StorageStart();
string_storage = NS_REINTERPRET_CAST(nsFlexBufferHandle<CharT>*, this)->StorageStart();
nsMemory::Free(string_storage);
}
}

Просмотреть файл

@ -53,11 +53,11 @@ class nsSharedBufferList
public:
class Buffer
: public nsXXXBufferHandle<PRUnichar>
: public nsFlexBufferHandle<PRUnichar>
{
public:
Buffer( PRUnichar* aDataStart, PRUnichar* aDataEnd, PRUnichar* aStorageStart, PRUnichar* aStorageEnd, PRBool aIsSingleAllocation=PR_FALSE )
: nsXXXBufferHandle<PRUnichar>(aDataStart, aDataEnd, aStorageStart, aStorageEnd)
: nsFlexBufferHandle<PRUnichar>(aDataStart, aDataEnd, aStorageStart, aStorageEnd)
{
if ( aIsSingleAllocation )
this->mFlags |= this->kIsSingleAllocationWithBuffer;