Skip to content

Commit 7052cde

Browse files
committed
Additional fix to minmax split constructor
Signed-off-by: Nick Avramoussis <[email protected]>
1 parent 67ffad6 commit 7052cde

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

openvdb/openvdb/tools/Count.h

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -329,24 +329,18 @@ struct MinMaxValuesOp
329329
using ValueT = typename TreeType::ValueType;
330330

331331
explicit MinMaxValuesOp()
332-
: min(zeroVal<ValueT>())
333-
, max(zeroVal<ValueT>())
334-
, seen_value(false)
335-
{
336-
}
332+
: min(zeroVal<ValueT>())
333+
, max(zeroVal<ValueT>())
334+
, seen_value(false) {}
337335

338-
MinMaxValuesOp(const MinMaxValuesOp& other, tbb::split)
339-
: min(other.min)
340-
, max(other.max)
341-
, seen_value(other.seen_value)
342-
{
343-
}
336+
MinMaxValuesOp(const MinMaxValuesOp&, tbb::split)
337+
: MinMaxValuesOp() {}
344338

345339
template <typename NodeType>
346340
bool operator()(NodeType& node, size_t)
347341
{
348342
if (auto iter = node.cbeginValueOn()) {
349-
if(!seen_value) {
343+
if (!seen_value) {
350344
seen_value = true;
351345
min = max = *iter;
352346
++iter;

0 commit comments

Comments
 (0)