From ea0237c716b7d96f75a4ef502da1238f47bf1cf3 Mon Sep 17 00:00:00 2001 From: Kiith-Sa Date: Thu, 27 Dec 2012 22:04:42 +0100 Subject: [PATCH] ZeroString opEquals by const ref (by Josh Colvin). --- dyaml/zerostring.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dyaml/zerostring.d b/dyaml/zerostring.d index ecaeb21..841a097 100644 --- a/dyaml/zerostring.d +++ b/dyaml/zerostring.d @@ -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_));