Remove redundant conditional expressions in <system_error>
* include/std/system_error (error_code::operator bool(), error_condition::operator bool()): Remove redundant conditional expression. From-SVN: r227871
This commit is contained in:
parent
99f04955ed
commit
2eb57e545b
2 changed files with 6 additions and 2 deletions
|
@ -1,5 +1,9 @@
|
|||
2015-09-17 Jonathan Wakely <jwakely@redhat.com>
|
||||
|
||||
* include/std/system_error (error_code::operator bool(),
|
||||
error_condition::operator bool()): Remove redundant conditional
|
||||
expression.
|
||||
|
||||
* include/bits/allocator.h (__shrink_to_fit_aux<T, true>::_S_do_it):
|
||||
Do nothing if exceptions are disabled.
|
||||
* include/bits/basic_string.h (basic_string::shrink_to_fit): Likewise.
|
||||
|
|
|
@ -181,7 +181,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
|||
{ return category().message(value()); }
|
||||
|
||||
explicit operator bool() const noexcept
|
||||
{ return _M_value != 0 ? true : false; }
|
||||
{ return _M_value != 0; }
|
||||
|
||||
// DR 804.
|
||||
private:
|
||||
|
@ -257,7 +257,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
|||
{ return category().message(value()); }
|
||||
|
||||
explicit operator bool() const noexcept
|
||||
{ return _M_value != 0 ? true : false; }
|
||||
{ return _M_value != 0; }
|
||||
|
||||
// DR 804.
|
||||
private:
|
||||
|
|
Loading…
Add table
Reference in a new issue