[Liblas-commits] r1228 - in trunk: include/liblas/detail test/sample

liblas-commits at liblas.org liblas-commits at liblas.org
Thu Apr 16 17:48:16 EDT 2009


Author: mloskot
Date: Thu Apr 16 17:48:15 2009
New Revision: 1228
URL: http://liblas.org/changeset/1228

Log:
Fixed EOL to LF in all C/C++ source code files.

Modified:
   trunk/include/liblas/detail/utility.hpp
   trunk/test/sample/utility.hpp

Modified: trunk/include/liblas/detail/utility.hpp
==============================================================================
--- trunk/include/liblas/detail/utility.hpp	(original)
+++ trunk/include/liblas/detail/utility.hpp	Thu Apr 16 17:48:15 2009
@@ -67,11 +67,11 @@
 namespace liblas { namespace detail {
 
 /// Compile-time calculation size of array defined statically.
-template <typename T, std::size_t N>
-inline std::size_t static_array_size(T (&t)[N])
-{
-    return (sizeof(t) / sizeof(t[0]));
-}
+template <typename T, std::size_t N>
+inline std::size_t static_array_size(T (&t)[N])
+{
+    return (sizeof(t) / sizeof(t[0]));
+}
 
 /// Simple RAII wrapper.
 /// It's dedicated to use with types associated with custom deleter,

Modified: trunk/test/sample/utility.hpp
==============================================================================
--- trunk/test/sample/utility.hpp	(original)
+++ trunk/test/sample/utility.hpp	Thu Apr 16 17:48:15 2009
@@ -54,27 +54,27 @@
 
     if (1 == minor)
     {
-        const int len = 13;
-        static std::string meaning[len] =
-        {
-            "Created, never classified",
-            "Unclassified",
-            "Ground",
-            "Low Vegetation",
-            "Medium Vegetation",
-            "High Vegetation",
-            "Building",
-            "Low Point (noise)",
-            "Model Key-point (mass point)",
-            "Water",
-            "Reserved for ASPRS Definition",
-            "Reserved for ASPRS Definition",
-            "Overlap Points",
-        };
-
-        // bit 0:4
-        liblas::uint8_t chClass = p.GetClassification();
-        unsigned int idx = (unsigned int)((chClass >> 3) & 0x1F); 
+        const int len = 13;
+        static std::string meaning[len] =
+        {
+            "Created, never classified",
+            "Unclassified",
+            "Ground",
+            "Low Vegetation",
+            "Medium Vegetation",
+            "High Vegetation",
+            "Building",
+            "Low Point (noise)",
+            "Model Key-point (mass point)",
+            "Water",
+            "Reserved for ASPRS Definition",
+            "Reserved for ASPRS Definition",
+            "Overlap Points",
+        };
+
+        // bit 0:4
+        liblas::uint8_t chClass = p.GetClassification();
+        unsigned int idx = (unsigned int)((chClass >> 3) & 0x1F); 
         std::cout << "\nClassification: "
             << ((idx >= 0 && idx < len) ? meaning[idx] : "Reserved for ASPRS Definition");
         std::cout << "\n- Synthetic: " << ((1 == (short)((chClass >> 2) & 0x1)) ? -1 : 0);


More information about the Liblas-commits mailing list