Fix some compiler warnings about initialisation order.

This commit is contained in:
Matt Williams 2012-06-20 23:56:37 +01:00
parent 9fdc30643a
commit 11f91fbbc4
4 changed files with 6 additions and 6 deletions

View File

@ -78,9 +78,9 @@ namespace PolyVox
:volume(volData)
,start(v3dStart)
,end(v3dEnd)
,result(listResult)
,connectivity(connectivity)
,hBias(fHBias)
,result(listResult)
,maxNumberOfNodes(uMaxNoOfNodes)
,isVoxelValidForPath(funcIsVoxelValidForPath)
,progressCallback(funcProgressCallback)

View File

@ -25,11 +25,11 @@ namespace PolyVox
{
template<typename VolumeType>
CubicSurfaceExtractorWithNormals<VolumeType>::CubicSurfaceExtractorWithNormals(VolumeType* volData, Region region, SurfaceMesh<PositionMaterialNormal>* result, polyvox_function<bool(typename VolumeType::VoxelType from, typename VolumeType::VoxelType to, float& materialToUse)> funcIsQuadNeededCallback)
:m_volData(volData)
:m_funcIsQuadNeededCallback(funcIsQuadNeededCallback)
,m_volData(volData)
,m_sampVolume(volData)
,m_meshCurrent(result)
,m_regSizeInVoxels(region)
,m_funcIsQuadNeededCallback(funcIsQuadNeededCallback)
{
assert(m_funcIsQuadNeededCallback);
}

View File

@ -34,11 +34,11 @@ namespace PolyVox
template<typename VolumeType>
Raycast<VolumeType>::Raycast(VolumeType* volData, const Vector3DFloat& v3dStart, const Vector3DFloat& v3dDirectionAndLength, RaycastResult& result, polyvox_function<bool(const typename VolumeType::Sampler& sampler)> funcIsPassable)
:m_result(result)
,m_funcIsPassable(funcIsPassable)
,m_volData(volData)
,m_sampVolume(volData)
,m_v3dStart(v3dStart)
,m_v3dDirectionAndLength(v3dDirectionAndLength)
,m_funcIsPassable(funcIsPassable)
{
}

View File

@ -33,9 +33,9 @@ namespace PolyVox
{
template <typename VoxelType>
Block<VoxelType>::Block(uint16_t uSideLength)
:m_uSideLength(0)
:m_tUncompressedData(0)
,m_uSideLength(0)
,m_uSideLengthPower(0)
,m_tUncompressedData(0)
,m_bIsCompressed(true)
,m_bIsUncompressedDataModified(true)
{