Skip to content

Commit

Permalink
Fix last GCC warning, and minor tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
connormanning committed Jan 7, 2015
1 parent 7452bec commit 182b048
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 3 additions & 0 deletions include/pdal/PointBuffer.hpp
Expand Up @@ -202,6 +202,9 @@ class PDAL_DLL PointBuffer
{ return m_context.pointSize(); }
std::size_t dimSize(Dimension::Id::Enum id) const
{ return m_context.dimSize(id); }
DimTypeList dimTypes() const
{ return m_context.dimTypes(); }


/// Fill a buffer with point data specified by the dimension list.
/// \param[in] dims List of dimensions/types to retrieve.
Expand Down
4 changes: 1 addition & 3 deletions include/pdal/PointContext.hpp
Expand Up @@ -52,10 +52,8 @@ namespace plang
class BufferedInvocation;
}

class DimInfo
struct DimInfo
{
friend class PointContext;
public:
DimInfo() : m_detail(Dimension::COUNT), m_nextFree(Dimension::PROPRIETARY)
{}

Expand Down
4 changes: 2 additions & 2 deletions io/bpf/BpfReader.cpp
Expand Up @@ -287,7 +287,7 @@ point_count_t BpfReader::readPointMajor(PointBuffer& data, point_count_t count)

point_count_t BpfReader::readDimMajor(PointBuffer& data, point_count_t count)
{
PointId idx;
PointId idx(0);
PointId startId = data.size();
point_count_t numRead = 0;
for (size_t d = 0; d < m_dims.size(); ++d)
Expand All @@ -310,7 +310,7 @@ point_count_t BpfReader::readDimMajor(PointBuffer& data, point_count_t count)

point_count_t BpfReader::readByteMajor(PointBuffer& data, point_count_t count)
{
PointId idx;
PointId idx(0);
PointId startId = data.size();
point_count_t numRead = 0;

Expand Down

0 comments on commit 182b048

Please sign in to comment.