From 839e5374b677b0251d3fa65cd3471a22ebf447e2 Mon Sep 17 00:00:00 2001 From: Matt Williams Date: Thu, 22 Nov 2012 20:43:53 +0000 Subject: [PATCH] Add required header and use const& in constructor --- library/PolyVoxCore/include/PolyVoxCore/VolumeResampler.h | 4 ++-- library/PolyVoxCore/include/PolyVoxCore/VolumeResampler.inl | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/library/PolyVoxCore/include/PolyVoxCore/VolumeResampler.h b/library/PolyVoxCore/include/PolyVoxCore/VolumeResampler.h index 716f4336..5074a92c 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/VolumeResampler.h +++ b/library/PolyVoxCore/include/PolyVoxCore/VolumeResampler.h @@ -24,7 +24,7 @@ freely, subject to the following restrictions: #ifndef __PolyVox_VolumeResampler_H__ #define __PolyVox_VolumeResampler_H__ -#include +#include "PolyVoxCore/Region.h" namespace PolyVox { @@ -32,7 +32,7 @@ namespace PolyVox class VolumeResampler { public: - VolumeResampler(SrcVolumeType* pVolSrc, Region regSrc, DstVolumeType* pVolDst, Region regDst); + VolumeResampler(SrcVolumeType* pVolSrc, const Region& regSrc, DstVolumeType* pVolDst, const Region& regDst); void execute(); diff --git a/library/PolyVoxCore/include/PolyVoxCore/VolumeResampler.inl b/library/PolyVoxCore/include/PolyVoxCore/VolumeResampler.inl index 8469c1d3..67db5c1e 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/VolumeResampler.inl +++ b/library/PolyVoxCore/include/PolyVoxCore/VolumeResampler.inl @@ -23,6 +23,8 @@ freely, subject to the following restrictions: #include "PolyVoxCore/Interpolation.h" +#include + namespace PolyVox { /** @@ -32,7 +34,7 @@ namespace PolyVox * \param regDst */ template< typename SrcVolumeType, typename DstVolumeType> - VolumeResampler::VolumeResampler(SrcVolumeType* pVolSrc, Region regSrc, DstVolumeType* pVolDst, Region regDst) + VolumeResampler::VolumeResampler(SrcVolumeType* pVolSrc, const Region ®Src, DstVolumeType* pVolDst, const Region& regDst) :m_pVolSrc(pVolSrc) ,m_regSrc(regSrc) ,m_pVolDst(pVolDst)