summaryrefslogtreecommitdiff
path: root/include/rtl/byteseq.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:21:55 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:35 +0100
commit26f05d59bc1c25b8a0d19be7f4738fd12e557001 (patch)
tree560cccfaacf4b63385aa52ac4b3912248e87cbef /include/rtl/byteseq.hxx
parent5bbdb9423e15b68438bb8397c15635e044129e28 (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: I1bc6c87fcd6e5e96362623be94c59be216a3b2b8
Diffstat (limited to 'include/rtl/byteseq.hxx')
-rw-r--r--include/rtl/byteseq.hxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/include/rtl/byteseq.hxx b/include/rtl/byteseq.hxx
index 494b17c4d8bd..cb16b83487d7 100644
--- a/include/rtl/byteseq.hxx
+++ b/include/rtl/byteseq.hxx
@@ -28,13 +28,13 @@ namespace rtl
inline ByteSequence::ByteSequence()
- : _pSequence( 0 )
+ : _pSequence( NULL )
{
::rtl_byte_sequence_construct( &_pSequence, 0 );
}
inline ByteSequence::ByteSequence( const ByteSequence & rSeq )
- : _pSequence( 0 )
+ : _pSequence( NULL )
{
::rtl_byte_sequence_assign( &_pSequence, rSeq._pSequence );
}
@@ -46,18 +46,18 @@ inline ByteSequence::ByteSequence( sal_Sequence *pSequence)
}
inline ByteSequence::ByteSequence( const sal_Int8 * pElements, sal_Int32 len )
- : _pSequence( 0 )
+ : _pSequence( NULL )
{
::rtl_byte_sequence_constructFromArray( &_pSequence, pElements, len );
- if (_pSequence == 0)
+ if (_pSequence == NULL)
throw ::std::bad_alloc();
}
inline ByteSequence::ByteSequence( sal_Int32 len, enum __ByteSequence_NoDefault )
- : _pSequence( 0 )
+ : _pSequence( NULL )
{
::rtl_byte_sequence_constructNoDefault( &_pSequence, len );
- if (_pSequence == 0)
+ if (_pSequence == NULL)
throw ::std::bad_alloc();
}
@@ -67,10 +67,10 @@ inline ByteSequence::ByteSequence( sal_Sequence *pSequence, enum __ByteSequence_
}
inline ByteSequence::ByteSequence( sal_Int32 len )
- : _pSequence( 0 )
+ : _pSequence( NULL )
{
::rtl_byte_sequence_construct( &_pSequence, len );
- if (_pSequence == 0)
+ if (_pSequence == NULL)
throw ::std::bad_alloc();
}
@@ -93,7 +93,7 @@ inline bool ByteSequence::operator == ( const ByteSequence & rSeq ) const
inline sal_Int8 * ByteSequence::getArray()
{
::rtl_byte_sequence_reference2One( &_pSequence );
- if (_pSequence == 0)
+ if (_pSequence == NULL)
throw ::std::bad_alloc();
return reinterpret_cast<sal_Int8 *>(_pSequence->elements);
}
@@ -101,7 +101,7 @@ inline sal_Int8 * ByteSequence::getArray()
inline void ByteSequence::realloc( sal_Int32 nSize )
{
::rtl_byte_sequence_realloc( &_pSequence, nSize );
- if (_pSequence == 0)
+ if (_pSequence == NULL)
throw ::std::bad_alloc();
}