Modified passed by value of object to const reference of object.
Removed C function call in operator==.