mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-10-30 19:16:52 +01:00
SmallString: Improve self-assignment behaviour
This commit is contained in:
1 parent
6aed46c603
commit
d049c395fc
3 files changed
+15
-1
No files matched your search
@@ -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