Bug 333244 - Equality operators for model related classes

Review Request #117524 - Created April 12, 2014 and submitted

Information
Calin Cruceru
marble
master
333244
Reviewers
marble
Added operator== and operator!= to the class GeoDataModel and its related classes GeoDataScale, GeoDataOrientation, GeoDataLocation and GeoDataResourceMap. Extended TestEquality by a new unit test method for each class which verifies the implementation for several instances of each class.


Although it was not the purpose of this patch, I also added a "using GeoDataObject::equals" in GeoDataOverlay.h (to avoid the warnings which said that GeoDataObject::equals was hidden by GeoDataOverlay::equals) and also called GeoDataObject::equals(other) in GeoDataOverlay::equals.
Tested using tests/TestEquality and works fine.
Dennis Nienhüser
Calin Cruceru
Calin Cruceru
Calin Cruceru
Review request changed

Status: Closed (submitted)

Change Summary:

http://commits.kde.org/marble/83bbf52cbcee6ad379a0a814cbe23401aba0361e
Loading...