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:
Jonathan Wakely 2015-09-17 15:56:50 +01:00 committed by Jonathan Wakely
parent 99f04955ed
commit 2eb57e545b
2 changed files with 6 additions and 2 deletions

View file

@ -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.

View file

@ -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: