mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-07-11 01:34:17 +02:00
SmallString: Improve self-assignment behaviour
This commit is contained in:
@@ -392,7 +392,8 @@ void SmallStringBase::vsprintf(const char* format, va_list ap)
|
||||
|
||||
void SmallStringBase::assign(const SmallStringBase& copy)
|
||||
{
|
||||
assign(copy.c_str(), copy.length());
|
||||
if (this != ©)
|
||||
assign(copy.c_str(), copy.length());
|
||||
}
|
||||
|
||||
void SmallStringBase::assign(const char* str)
|
||||
|
||||
Reference in New Issue
Block a user