[Liblas-commits] hg: remove redeclaration and use the correct one
liblas-commits at liblas.org
liblas-commits at liblas.org
Tue Jun 21 11:13:08 EDT 2011
details: http://hg.liblas.orghg/rev/b2c2d64c5bf8
changeset: 2965:b2c2d64c5bf8
user: Howard Butler <hobu.inc at gmail.com>
date: Tue Jun 21 10:12:21 2011 -0500
description:
remove redeclaration and use the correct one
Subject: hg: add operator not=
details: http://hg.liblas.orghg/rev/51059fa1be81
changeset: 2966:51059fa1be81
user: Howard Butler <hobu.inc at gmail.com>
date: Tue Jun 21 10:13:02 2011 -0500
description:
add operator not=
diffstat:
include/liblas/spatialreference.hpp | 1 +
test/unit/spatialreference_test.cpp | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diffs (25 lines):
diff -r 32f270ddfd32 -r 51059fa1be81 include/liblas/spatialreference.hpp
--- a/include/liblas/spatialreference.hpp Tue Jun 21 09:57:33 2011 -0500
+++ b/include/liblas/spatialreference.hpp Tue Jun 21 10:13:02 2011 -0500
@@ -98,6 +98,7 @@
SpatialReference& operator=(SpatialReference const& rhs);
bool operator==(const SpatialReference& other) const;
+ bool operator!=(const SpatialReference& other) const { return !(*this == other); }
/// Returns a pointer to the internal GTIF*. Only available if
/// you have libgeotiff linked in.
diff -r 32f270ddfd32 -r 51059fa1be81 test/unit/spatialreference_test.cpp
--- a/test/unit/spatialreference_test.cpp Tue Jun 21 09:57:33 2011 -0500
+++ b/test/unit/spatialreference_test.cpp Tue Jun 21 10:13:02 2011 -0500
@@ -237,8 +237,8 @@
liblas::SpatialReference ref2;
ref2.SetWKT(wkt_c);
- liblas::SpatialReference test_ref;
- test_ref.SetWKT(ref2.GetWKT());
+ liblas::SpatialReference test_ref2;
+ test_ref2.SetWKT(ref2.GetWKT());
ensure_equals("WKT comparison from geotiff", ref2, test_ref2 );
}
More information about the Liblas-commits
mailing list