diff options
author | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-09-17 14:56:50 +0000 |
---|---|---|
committer | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-09-17 14:56:50 +0000 |
commit | 3e745c1e38dac25a1eeee325d5e8a0bffdf73304 (patch) | |
tree | 2284dd9f498d7197170c1834af9b00070e69e77c /libstdc++-v3/include/std | |
parent | 6904f6c1b9a6a143bf44362b00fa4b1a7e517718 (diff) | |
download | gcc-3e745c1e38dac25a1eeee325d5e8a0bffdf73304.tar.gz |
Remove redundant conditional expressions in <system_error>
* include/std/system_error (error_code::operator bool(),
error_condition::operator bool()): Remove redundant conditional
expression.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227871 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/std')
-rw-r--r-- | libstdc++-v3/include/std/system_error | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/include/std/system_error b/libstdc++-v3/include/std/system_error index 92f8af97efc..cc82bdfe49f 100644 --- a/libstdc++-v3/include/std/system_error +++ b/libstdc++-v3/include/std/system_error @@ -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: |