Skip to content

Commit f8aee7f

Browse files
committed
WIP fixes
1 parent 7070244 commit f8aee7f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

openvkl/devices/cpu/volume/amr/AMRAccel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ namespace openvkl {
6767
levelAllocator.getDevice(), brick.size() + 1);
6868

6969
newLeaf.brickList = brickListBuffer->sharedPtr();
70-
m_brickListContainer.push_back(brickListBuffer);
70+
m_brickListContainer.push_back(std::move(brickListBuffer));
7171

7272
// create leaf list, and sort it
7373
std::copy(brick.begin(), brick.end(), newLeaf.brickList);

testing/volume/TestingAMRVolume.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ namespace openvkl {
270270
refinementLevels.push_back(level);
271271
cellWidths.resize(std::max(cellWidths.size(), (size_t)level + 1));
272272
cellWidths[level] = dt;
273-
brickData.push_back(data);
273+
brickData.push_back(std::move(data));
274274
}
275275
}); // end parallel for
276276
currentLevel = nextLevel;

0 commit comments

Comments
 (0)