From db45c881d98f2288aa26960e5eae6070f792b82a Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 31 Mar 2010 14:23:55 +0000 Subject: Removed the bool cast operator from FBasicString. It turns out it was causing way, way, way more problems than it solved. A number of libbu++ tests were inacurate because of it, there were problems in several other programs, and there may be more that have problems we haven't found yet because of this. This will most likely cause complitaion errors, especially in places we didn't expect, where strings were being stored into or passed as integers and the like. In cases where you were just testing a string, just call the "isSet()" function, which is functionally equivellent to the old bool cast operator. --- src/unit/hash.unit | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/unit/hash.unit') diff --git a/src/unit/hash.unit b/src/unit/hash.unit index 9edc61e..c0a10e3 100644 --- a/src/unit/hash.unit +++ b/src/unit/hash.unit @@ -45,13 +45,13 @@ typedef Bu::Hash IntStrHash; unitTest( h["Hi"].getValue() == "Yo" ); StrStrHash h2(h); - unitTest( h2["Hi"].getValue() = "Yo" ); - unitTest( h2["Bye"].getValue() = "Later" ); + unitTest( h2["Hi"].getValue() == "Yo" ); + unitTest( h2["Bye"].getValue() == "Later" ); StrStrHash h3; h3 = h; - unitTest( h3["Hi"].getValue() = "Yo" ); - unitTest( h3["Bye"].getValue() = "Later" ); + unitTest( h3["Hi"].getValue() == "Yo" ); + unitTest( h3["Bye"].getValue() == "Later" ); } {%insert3} -- cgit v1.2.3