mirror of
https://github.com/kennethreitz/static_string.git
synced 2026-06-05 23:00:20 +00:00
committed by
Alan de Freitas
parent
9c3d5febe7
commit
82ff4e0679
@@ -1319,7 +1319,7 @@ public:
|
||||
basic_static_string&
|
||||
assign(const basic_static_string& s) noexcept
|
||||
{
|
||||
if (this == &s)
|
||||
if (data() == s.data())
|
||||
return *this;
|
||||
return assign_unchecked(s.data(), s.size());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user