Clang warned about a unnecessary copy of GridBase::Ptr (alias for std::shared_ptr<openvdb::GridBase>) without the &. This would not be dramatic but this PR silences the warning.
Details
Details
Diff Detail
Diff Detail
- Repository
- rB Blender
Event Timeline
Comment Actions
btw, here is the warning:
../source/blender/blenkernel/intern/volume.cc:684:8: note: use reference type 'const openvdb::GridBase::Ptr &' (aka 'const shared_ptr<openvdb::v5_2::GridBase> &') to prevent copying
for (const openvdb::GridBase::Ptr vdb_grid : vdb_grids) {