[Liblas-commits] hg: Replaced manual initialisation of Bounds with simple value a...

liblas-commits at liblas.org liblas-commits at liblas.org
Fri Jul 30 19:02:42 EDT 2010


changeset dbc959d9ca2f in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=dbc959d9ca2f
summary: Replaced manual initialisation of Bounds with simple value assignment.

diffstat:

 src/lasbounds.cpp |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (38 lines):

diff -r d6d11239f7a7 -r dbc959d9ca2f src/lasbounds.cpp
--- a/src/lasbounds.cpp	Fri Jul 30 14:44:02 2010 -0500
+++ b/src/lasbounds.cpp	Sat Jul 31 00:02:19 2010 +0100
@@ -40,6 +40,9 @@
  ****************************************************************************/
 
 #include <liblas/lasbounds.hpp>
+// boost
+#include <boost/concept_check.hpp>
+// std
 #include <cmath>
 #include <limits>
 #include <string>
@@ -47,13 +50,10 @@
 
 namespace liblas { 
 
-
 Bounds::Bounds()
 {
-    for (int i = 0; i < 3; ++i) {
-        mins[i] = 0;
-        maxs[i] = 0;
-    }
+    mins.assign(0);
+    maxs.assign(0);
 }
 
 Bounds::Bounds( double minx, 
@@ -175,7 +175,7 @@
 
 bool Bounds::intersects3d(Bounds const& other) const
 {
-    detail::ignore_unused_variable_warning(other);
+    boost::ignore_unused_variable_warning(other);
     // not implemented
     throw    std::runtime_error("not implemented");
 


More information about the Liblas-commits mailing list