Fixed Xcode warnings.

This commit is contained in:
Andrzej Kapolka 2013-12-17 17:13:41 -08:00
parent 6cffce5b31
commit 8ddf6297a5
3 changed files with 4 additions and 4 deletions

View file

@ -19,8 +19,8 @@ ProgramObject MetavoxelSystem::_program;
int MetavoxelSystem::_pointScaleLocation;
MetavoxelSystem::MetavoxelSystem() :
_buffer(QOpenGLBuffer::VertexBuffer),
_pointVisitor(_points) {
_pointVisitor(_points),
_buffer(QOpenGLBuffer::VertexBuffer) {
}
void MetavoxelSystem::init() {

View file

@ -89,6 +89,7 @@ OwnedAttributeValue& OwnedAttributeValue::operator=(const AttributeValue& other)
if ((_attribute = other.getAttribute())) {
_value = _attribute->create(other.getValue());
}
return *this;
}
Attribute::Attribute(const QString& name) {

View file

@ -55,8 +55,7 @@ AttributeValue MetavoxelData::getAttributeValue(const MetavoxelPath& path, const
return AttributeValue(attribute);
}
for (int i = 0, n = path.getSize(); i < n; i++) {
int index = path[i];
MetavoxelNode* child = node->getChild(i);
MetavoxelNode* child = node->getChild(path[i]);
if (child == NULL) {
return node->getAttributeValue(attribute);
}