fix |const| errors, this file is not yet part of the build

This commit is contained in:
scc%mozilla.org 2000-09-09 06:32:46 +00:00
parent 3798ef25f3
commit 2e1d1cad8f
3 changed files with 15 additions and 9 deletions

View File

@ -94,14 +94,16 @@ class nsSharedBufferHandle
void
AcquireReference() const
{
set_refcount( get_refcount()+1 );
nsSharedBufferHandle<CharT>* mutable_this = NS_CONST_CAST(nsSharedBufferHandle<CharT>*, this);
mutable_this->set_refcount( get_refcount()+1 );
}
void
ReleaseReference() const
{
if ( !set_refcount( get_refcount()-1 ) )
delete this;
nsSharedBufferHandle<CharT>* mutable_this = NS_CONST_CAST(nsSharedBufferHandle<CharT>*, this);
if ( !mutable_this->set_refcount( get_refcount()-1 ) )
delete mutable_this;
}
PRBool

View File

@ -94,14 +94,16 @@ class nsSharedBufferHandle
void
AcquireReference() const
{
set_refcount( get_refcount()+1 );
nsSharedBufferHandle<CharT>* mutable_this = NS_CONST_CAST(nsSharedBufferHandle<CharT>*, this);
mutable_this->set_refcount( get_refcount()+1 );
}
void
ReleaseReference() const
{
if ( !set_refcount( get_refcount()-1 ) )
delete this;
nsSharedBufferHandle<CharT>* mutable_this = NS_CONST_CAST(nsSharedBufferHandle<CharT>*, this);
if ( !mutable_this->set_refcount( get_refcount()-1 ) )
delete mutable_this;
}
PRBool

View File

@ -94,14 +94,16 @@ class nsSharedBufferHandle
void
AcquireReference() const
{
set_refcount( get_refcount()+1 );
nsSharedBufferHandle<CharT>* mutable_this = NS_CONST_CAST(nsSharedBufferHandle<CharT>*, this);
mutable_this->set_refcount( get_refcount()+1 );
}
void
ReleaseReference() const
{
if ( !set_refcount( get_refcount()-1 ) )
delete this;
nsSharedBufferHandle<CharT>* mutable_this = NS_CONST_CAST(nsSharedBufferHandle<CharT>*, this);
if ( !mutable_this->set_refcount( get_refcount()-1 ) )
delete mutable_this;
}
PRBool