From d652cd3f1daa4629f61ad366195e8d6601f1b718 Mon Sep 17 00:00:00 2001 From: Howard Butler Date: Tue, 16 Apr 2013 14:44:51 -0500 Subject: [PATCH] fix up const_cast warning --- include/pdal/PointBuffer.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/pdal/PointBuffer.hpp b/include/pdal/PointBuffer.hpp index 24491f9487..c5b7e562fe 100644 --- a/include/pdal/PointBuffer.hpp +++ b/include/pdal/PointBuffer.hpp @@ -254,7 +254,7 @@ class PDAL_DLL PointBuffer /// @param pointIndex position to start accessing inline boost::uint8_t* getData(boost::uint32_t pointIndex) const { - return (boost::uint8_t*)&(m_data.front()) + m_byteSize * pointIndex; + return const_cast(&(m_data.front())) + m_byteSize * pointIndex; } /// copies the raw data into your own byte array and sets the size @@ -348,7 +348,6 @@ class PDAL_DLL PointBuffer std::vector m_data; boost::uint32_t m_numPoints; boost::uint32_t m_capacity; - boost::uint64_t m_arraySize; Bounds m_bounds; // We cache m_schema.getByteSize() here because it would end up