From ac0852cea0d607b97de1930841fadb1ac1b019e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Barschkis?= Date: Wed, 24 Jun 2020 18:36:42 +0200 Subject: Fluid: Fix OpenVDB compiler warnings Kudos to brecht for noticing the issue --- extern/mantaflow/preprocessed/fileio/iovdb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extern/mantaflow/preprocessed/fileio') diff --git a/extern/mantaflow/preprocessed/fileio/iovdb.cpp b/extern/mantaflow/preprocessed/fileio/iovdb.cpp index 31958dcb977..b31f7e0e760 100644 --- a/extern/mantaflow/preprocessed/fileio/iovdb.cpp +++ b/extern/mantaflow/preprocessed/fileio/iovdb.cpp @@ -478,7 +478,7 @@ int readObjectsVDB(const string &filename, std::vector *objects, floa } // For every manta object, we loop through the vdb grid list and check for a match - for (const openvdb::GridBase::Ptr vdbGrid : gridsVDB) { + for (const openvdb::GridBase::Ptr &vdbGrid : gridsVDB) { bool nameMatch = (vdbGrid->getName() == (*iter)->getName()); // Sanity checks: Only load valid grids and make sure names match. -- cgit v1.2.3