ZeroString opEquals by const ref (by Josh Colvin).

This commit is contained in:
Kiith-Sa 2012-12-27 22:04:42 +01:00
parent f06cb132a3
commit ea0237c716

View file

@ -44,7 +44,7 @@ struct ZeroString(string TypeName)
}
///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 :
str.isNull ? false : (0 == strcmp(str_, str.str_));