[Liblas-commits] hg: use size_type instead of uint32_t for iterator
liblas-commits at liblas.org
liblas-commits at liblas.org
Tue Aug 10 16:53:49 EDT 2010
changeset 92878748f048 in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=92878748f048
summary: use size_type instead of uint32_t for iterator
diffstat:
include/liblas/lasbounds.hpp | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
diffs (34 lines):
diff -r a25e38321440 -r 92878748f048 include/liblas/lasbounds.hpp
--- a/include/liblas/lasbounds.hpp Tue Aug 10 15:38:45 2010 -0500
+++ b/include/liblas/lasbounds.hpp Tue Aug 10 15:53:44 2010 -0500
@@ -198,20 +198,12 @@
}
maxs[index] = v;
}
-//
-// inline bool operator==(Bounds<T> const& lhs, Bounds<T> const& rhs)
-// {
-// return lhs.equal(rhs);
-// }
+
inline bool operator==(Bounds<T> const& rhs) const
{
return equal(rhs);
}
-// inline bool operator!=(Bounds<T> const& lhs, Bounds<T> const& rhs)
-// {
-// return (!lhs.equal(rhs));
-// }
inline bool operator!=(Bounds<T> const& rhs) const
{
return (!equal(rhs));
@@ -268,7 +260,7 @@
throw std::runtime_error(msg.str());
}
- for (uint32_t i = 0; i < dimension(); i++){
+ for (size_type i = 0; i < dimension(); i++){
if (min(i) > other.max(i) || max(i) < other.min(i)) return false;
}
More information about the Liblas-commits
mailing list