Skip to content

Commit

Permalink
remove unneeded by-ref accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
mpgerlek committed Sep 29, 2011
1 parent 165a489 commit 8502e07
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions include/pdal/PointBuffer.hpp
Expand Up @@ -84,18 +84,11 @@ class PDAL_DLL PointBuffer
// This is a fixed constant, set at ctor time by the person constructing the buffer.
inline boost::uint32_t getCapacity() const { return m_capacity; }

// convenience function
const Schema& getSchema() const
{
return m_schema;
}

// convenience function
Schema& getSchema()
{
return m_schema;
}

// accessors to a particular field of a particular point in this buffer
template<class T> T getField(std::size_t pointIndex, boost::int32_t fieldIndex) const;
template<class T> void setField(std::size_t pointIndex, boost::int32_t fieldIndex, T value);
Expand Down
2 changes: 1 addition & 1 deletion src/filters/ByteSwapFilter.cpp
Expand Up @@ -99,7 +99,7 @@ const Options ByteSwapFilter::getDefaultOptions() const

boost::uint32_t ByteSwapFilter::processBuffer(PointBuffer& dstData, const PointBuffer& srcData) const
{
Schema& dstSchema = dstData.getSchema();
const Schema& dstSchema = dstData.getSchema();

const std::vector<Dimension>& dstDims = dstSchema.getDimensions();

Expand Down

0 comments on commit 8502e07

Please sign in to comment.