summaryrefslogtreecommitdiff
path: root/camera/device/3.2/default/CameraDeviceSession.cpp
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2020-03-05 15:30:00 -0800
committerChih-Hung Hsieh <chh@google.com>2020-03-05 15:30:00 -0800
commitba3a1cb5292580ca19e9b3849e3608353a5fa98b (patch)
tree22f286966e48fe1ce4c8a28b30e0e389cc1c162d /camera/device/3.2/default/CameraDeviceSession.cpp
parenta9e6f70d502a5a2cd440a1d0d803b53fe7aba4f8 (diff)
Fix bugprone-use-after-move warnings
Bug: 150783499 Test: WITH_TIDY=1 make Change-Id: If257532523674ea6256b72ec765904a8de5bf565
Diffstat (limited to 'camera/device/3.2/default/CameraDeviceSession.cpp')
-rw-r--r--camera/device/3.2/default/CameraDeviceSession.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/camera/device/3.2/default/CameraDeviceSession.cpp b/camera/device/3.2/default/CameraDeviceSession.cpp
index 99cdccbcdb..769991c5fa 100644
--- a/camera/device/3.2/default/CameraDeviceSession.cpp
+++ b/camera/device/3.2/default/CameraDeviceSession.cpp
@@ -790,8 +790,9 @@ void CameraDeviceSession::ResultBatcher::processCaptureResult(CaptureResult& res
auto it = batch->mBatchBufs.find(buffer.streamId);
if (it != batch->mBatchBufs.end()) {
InflightBatch::BufferBatch& bb = it->second;
+ auto id = buffer.streamId;
pushStreamBuffer(std::move(buffer), bb.mBuffers);
- filledStreams.push_back(buffer.streamId);
+ filledStreams.push_back(id);
} else {
pushStreamBuffer(std::move(buffer), nonBatchedBuffers);
}