Remove unnecessary consts.

Since a copy is being made in the return, the const qualifiers are
ignored anyway.
This commit is contained in:
Matt Williams 2013-07-01 12:23:21 +01:00
parent edf1f5d665
commit c843e7e705
2 changed files with 4 additions and 4 deletions

View File

@ -40,8 +40,8 @@ namespace PolyVox
public:
Block(uint16_t uSideLength, Compressor* pCompressor);
const uint8_t* const getCompressedData(void) const;
const uint32_t getCompressedDataLength(void) const;
const uint8_t* getCompressedData(void) const;
uint32_t getCompressedDataLength(void) const;
uint16_t getSideLength(void) const;
VoxelType getVoxel(uint16_t uXPos, uint16_t uYPos, uint16_t uZPos) const;
VoxelType getVoxel(const Vector3DUint16& v3dPos) const;

View File

@ -75,14 +75,14 @@ namespace PolyVox
}
template <typename VoxelType>
const uint8_t* const Block<VoxelType>::getCompressedData(void) const
const uint8_t* Block<VoxelType>::getCompressedData(void) const
{
POLYVOX_ASSERT(m_pCompressedData, "Compressed data is NULL");
return m_pCompressedData;
}
template <typename VoxelType>
const uint32_t Block<VoxelType>::getCompressedDataLength(void) const
uint32_t Block<VoxelType>::getCompressedDataLength(void) const
{
POLYVOX_ASSERT(m_pCompressedData, "Compressed data is NULL");
return m_uCompressedDataLength;