mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 16:55:07 +02:00
Fixed Xcode warnings.
This commit is contained in:
parent
6cffce5b31
commit
8ddf6297a5
3 changed files with 4 additions and 4 deletions
|
@ -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() {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue