@@ -3421,7 +3421,7 @@ wbuffer_convert<_Codecvt, _Elem, _Tr>::~wbuffer_convert() {
3421
3421
template <class _Codecvt , class _Elem , class _Tr >
3422
3422
typename wbuffer_convert<_Codecvt, _Elem, _Tr>::int_type wbuffer_convert<_Codecvt, _Elem, _Tr>::underflow() {
3423
3423
_LIBCPP_SUPPRESS_DEPRECATED_POP
3424
- if (__cv_ == 0 || __bufptr_ == 0 )
3424
+ if (__cv_ == 0 || __bufptr_ == nullptr )
3425
3425
return traits_type::eof ();
3426
3426
bool __initial = __read_mode ();
3427
3427
char_type __1buf;
@@ -3478,7 +3478,7 @@ template <class _Codecvt, class _Elem, class _Tr>
3478
3478
typename wbuffer_convert<_Codecvt, _Elem, _Tr>::int_type
3479
3479
wbuffer_convert<_Codecvt, _Elem, _Tr>::pbackfail(int_type __c) {
3480
3480
_LIBCPP_SUPPRESS_DEPRECATED_POP
3481
- if (__cv_ != 0 && __bufptr_ != 0 && this ->eback () < this ->gptr ()) {
3481
+ if (__cv_ != 0 && __bufptr_ && this ->eback () < this ->gptr ()) {
3482
3482
if (traits_type::eq_int_type (__c, traits_type::eof ())) {
3483
3483
this ->gbump (-1 );
3484
3484
return traits_type::not_eof (__c);
@@ -3496,7 +3496,7 @@ _LIBCPP_SUPPRESS_DEPRECATED_PUSH
3496
3496
template <class _Codecvt , class _Elem , class _Tr >
3497
3497
typename wbuffer_convert<_Codecvt, _Elem, _Tr>::int_type wbuffer_convert<_Codecvt, _Elem, _Tr>::overflow(int_type __c) {
3498
3498
_LIBCPP_SUPPRESS_DEPRECATED_POP
3499
- if (__cv_ == 0 || __bufptr_ == 0 )
3499
+ if (__cv_ == 0 || ! __bufptr_)
3500
3500
return traits_type::eof ();
3501
3501
__write_mode ();
3502
3502
char_type __1buf;
@@ -3588,7 +3588,7 @@ template <class _Codecvt, class _Elem, class _Tr>
3588
3588
typename wbuffer_convert<_Codecvt, _Elem, _Tr>::pos_type
3589
3589
wbuffer_convert<_Codecvt, _Elem, _Tr>::seekoff(off_type __off, ios_base::seekdir __way, ios_base::openmode __om) {
3590
3590
int __width = __cv_->encoding ();
3591
- if (__cv_ == 0 || __bufptr_ == 0 || (__width <= 0 && __off != 0 ) || sync ())
3591
+ if (__cv_ == 0 || ! __bufptr_ || (__width <= 0 && __off != 0 ) || sync ())
3592
3592
return pos_type (off_type (-1 ));
3593
3593
// __width > 0 || __off == 0, now check __way
3594
3594
if (__way != ios_base::beg && __way != ios_base::cur && __way != ios_base::end)
@@ -3601,7 +3601,7 @@ wbuffer_convert<_Codecvt, _Elem, _Tr>::seekoff(off_type __off, ios_base::seekdir
3601
3601
template <class _Codecvt , class _Elem , class _Tr >
3602
3602
typename wbuffer_convert<_Codecvt, _Elem, _Tr>::pos_type
3603
3603
wbuffer_convert<_Codecvt, _Elem, _Tr>::seekpos(pos_type __sp, ios_base::openmode __wch) {
3604
- if (__cv_ == 0 || __bufptr_ == 0 || sync ())
3604
+ if (__cv_ == 0 || ! __bufptr_ || sync ())
3605
3605
return pos_type (off_type (-1 ));
3606
3606
if (__bufptr_->pubseekpos (__sp, __wch) == pos_type (off_type (-1 )))
3607
3607
return pos_type (off_type (-1 ));
@@ -3611,7 +3611,7 @@ wbuffer_convert<_Codecvt, _Elem, _Tr>::seekpos(pos_type __sp, ios_base::openmode
3611
3611
template <class _Codecvt , class _Elem , class _Tr >
3612
3612
int wbuffer_convert<_Codecvt, _Elem, _Tr>::sync() {
3613
3613
_LIBCPP_SUPPRESS_DEPRECATED_POP
3614
- if (__cv_ == 0 || __bufptr_ == 0 )
3614
+ if (__cv_ == 0 || ! __bufptr_)
3615
3615
return 0 ;
3616
3616
if (__cm_ & ios_base::out) {
3617
3617
if (this ->pptr () != this ->pbase ())
0 commit comments