mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
fix |const| errors, this file is not yet part of the build
This commit is contained in:
parent
3798ef25f3
commit
2e1d1cad8f
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user