[Liblas-commits] hg: 2 new changesets

liblas-commits at liblas.org liblas-commits at liblas.org
Tue Oct 26 11:59:27 EDT 2010


changeset 67b84bdf17bd in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=67b84bdf17bd
summary: A cast that Mateusz wouldn't approve of in a function that Mateusz doesn't approve of :)

changeset 1f98e719e1d3 in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=1f98e719e1d3
summary: BUILT_TYPE define

diffstat:

 apps/laskernel.cpp |  4 ++--
 hobu-config.bat    |  5 ++++-
 2 files changed, 6 insertions(+), 3 deletions(-)

diffs (42 lines):

diff -r 83a42a40ae96 -r 1f98e719e1d3 apps/laskernel.cpp
--- a/apps/laskernel.cpp	Tue Oct 26 10:29:51 2010 -0500
+++ b/apps/laskernel.cpp	Tue Oct 26 09:59:08 2010 -0600
@@ -30,7 +30,7 @@
     std::vector<char> data = TryReadRawFileData(filename);
 
     // FIXME: What is this construction supposed to grab? --mloskot
-    return std::string(data.front(), (std::size_t) data.size());
+    return std::string((const char*)data.front(), data.size());
 }
 
 std::vector<char> TryReadRawFileData(std::string filename)
@@ -1044,7 +1044,7 @@
             throw std::runtime_error(oss.str());
         }
 
-        v.SetRecordId(id);
+        v.SetRecordId(static_cast<boost::uint16_t>(id));
         
         std::vector<boost::uint8_t> data;
         
diff -r 83a42a40ae96 -r 1f98e719e1d3 hobu-config.bat
--- a/hobu-config.bat	Tue Oct 26 10:29:51 2010 -0500
+++ b/hobu-config.bat	Tue Oct 26 09:59:08 2010 -0600
@@ -5,6 +5,9 @@
 set OSGEO4W=C:\OSGeo4W
 set BOOST=D:\boost\boost_1_44
 set ORACLE_HOME=%OSGEO4W%
+# set BUILD_TYPE=RelWithDebInfo
+set BUILD_TYPE=Debug
+# set BUILD_TYPE=Release
 
 set PATH=%OSGEO4W%\apps\gdal-dev\bin;%OSGEO4W%\bin;%PATH%
 
@@ -21,5 +24,5 @@
     -DGDAL_LIBRARY=%OSGEO4W%\apps\gdal-dev\lib\gdal_i.lib ^
     -DORACLE_INCLUDE_DIR=%ORACLE_HOME%\include ^
     -DORACLE_OCI_LIBRARY=%ORACLE_HOME%\lib\oci.lib ^
-    -DCMAKE_BUILD_TYPE=RelWithDebInfo ^
+    -DCMAKE_BUILD_TYPE=%BUILD_TYPE% ^
     %LIBLAS%
\ No newline at end of file


More information about the Liblas-commits mailing list