fixed some warnings

This commit is contained in:
ZappoMan 2014-02-28 16:17:30 -08:00
parent 8d7406461a
commit d2faca9767
3 changed files with 3 additions and 4 deletions

View file

@ -20,7 +20,7 @@
class AABoundingVolume
{
public:
AABoundingVolume() : _isSingleDirectionSet(false), _numPointsInSet(0) { memset(_bounds,0,sizeof(_bounds)); }
AABoundingVolume() : _numPointsInSet(0), _isSingleDirectionSet(false) { memset(_bounds,0,sizeof(_bounds)); }
~AABoundingVolume(){}
void AddToSet(const glm::vec3 newPt)

View file

@ -28,7 +28,6 @@ GLubyte SvoViewer::SetupGlVBO(GLuint * id, int sizeInBytes, GLenum target, GLenu
bool SvoViewer::FindNumLeaves(OctreeElement* node, void* extraData)
{
VoxelTreeElement* voxel = (VoxelTreeElement*)node;
FindNumLeavesData* args = (FindNumLeavesData*)extraData;
if (node->isLeaf()) args->numLeaves++;
return true;

View file

@ -77,8 +77,8 @@ Resource::Resource(const QUrl& url, bool delayLoad) :
_request(url),
_startedLoading(false),
_failedToLoad(false),
_attempts(0),
_reply(NULL) {
_reply(NULL),
_attempts(0) {
if (!url.isValid()) {
_startedLoading = _failedToLoad = true;