mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 05:52:31 +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;
|
int MetavoxelSystem::_pointScaleLocation;
|
||||||
|
|
||||||
MetavoxelSystem::MetavoxelSystem() :
|
MetavoxelSystem::MetavoxelSystem() :
|
||||||
_buffer(QOpenGLBuffer::VertexBuffer),
|
_pointVisitor(_points),
|
||||||
_pointVisitor(_points) {
|
_buffer(QOpenGLBuffer::VertexBuffer) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void MetavoxelSystem::init() {
|
void MetavoxelSystem::init() {
|
||||||
|
|
|
@ -89,6 +89,7 @@ OwnedAttributeValue& OwnedAttributeValue::operator=(const AttributeValue& other)
|
||||||
if ((_attribute = other.getAttribute())) {
|
if ((_attribute = other.getAttribute())) {
|
||||||
_value = _attribute->create(other.getValue());
|
_value = _attribute->create(other.getValue());
|
||||||
}
|
}
|
||||||
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
Attribute::Attribute(const QString& name) {
|
Attribute::Attribute(const QString& name) {
|
||||||
|
|
|
@ -55,8 +55,7 @@ AttributeValue MetavoxelData::getAttributeValue(const MetavoxelPath& path, const
|
||||||
return AttributeValue(attribute);
|
return AttributeValue(attribute);
|
||||||
}
|
}
|
||||||
for (int i = 0, n = path.getSize(); i < n; i++) {
|
for (int i = 0, n = path.getSize(); i < n; i++) {
|
||||||
int index = path[i];
|
MetavoxelNode* child = node->getChild(path[i]);
|
||||||
MetavoxelNode* child = node->getChild(i);
|
|
||||||
if (child == NULL) {
|
if (child == NULL) {
|
||||||
return node->getAttributeValue(attribute);
|
return node->getAttributeValue(attribute);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue