ZeroString opEquals by const ref (by Josh Colvin).
This commit is contained in:
parent
f06cb132a3
commit
ea0237c716
|
@ -44,7 +44,7 @@ struct ZeroString(string TypeName)
|
||||||
}
|
}
|
||||||
|
|
||||||
///Test for equality with another string.
|
///Test for equality with another string.
|
||||||
bool opEquals(const ref ZeroString str) const nothrow @trusted
|
bool opEquals(const ZeroString str) const nothrow @trusted
|
||||||
{
|
{
|
||||||
return isNull ? str.isNull :
|
return isNull ? str.isNull :
|
||||||
str.isNull ? false : (0 == strcmp(str_, str.str_));
|
str.isNull ? false : (0 == strcmp(str_, str.str_));
|
||||||
|
|
Loading…
Reference in a new issue