diff options
author | Benjamin Kosnik <bkoz@redhat.com> | 2004-07-08 15:56:21 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2004-07-08 15:56:21 +0000 |
commit | 75f29cdded521da42f6b3a8d790371203d833664 (patch) | |
tree | 740ac0cf713d86bccbe7691a6b07c4d02363ee94 /libstdc++-v3/include | |
parent | 6f263171932776da6261c23302c32acb084f293f (diff) | |
download | gcc-75f29cdded521da42f6b3a8d790371203d833664.zip gcc-75f29cdded521da42f6b3a8d790371203d833664.tar.gz gcc-75f29cdded521da42f6b3a8d790371203d833664.tar.bz2 |
re PR c++/16169 (-Weffc++ item 15 improvements)
2004-07-08 Benjamin Kosnik <bkoz@redhat.com>
PR c++/16169
* include/bits/basic_string.h (basic_string::operator=): Revert.
From-SVN: r84296
Diffstat (limited to 'libstdc++-v3/include')
-rw-r--r-- | libstdc++-v3/include/bits/basic_string.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/libstdc++-v3/include/bits/basic_string.h b/libstdc++-v3/include/bits/basic_string.h index a7290d7..7e6c669 100644 --- a/libstdc++-v3/include/bits/basic_string.h +++ b/libstdc++-v3/include/bits/basic_string.h @@ -419,10 +419,7 @@ namespace std */ basic_string& operator=(const basic_string& __str) - { - this->assign(__str); - return *this; - } + { return this->assign(__str); } /** * @brief Copy contents of @a s into this string. @@ -430,10 +427,7 @@ namespace std */ basic_string& operator=(const _CharT* __s) - { - this->assign(__s); - return *this; - } + { return this->assign(__s); } /** * @brief Set value to string of length 1. |