Skip to content

Commit 39640ab

Browse files
committed
Remove unused on the return value of a map emplace
1 parent 51ac134 commit 39640ab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/flamegpu/gpu/CUDASimulation.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ CUDASimulation::CUDASimulation(const std::shared_ptr<const ModelData> &_model)
8080
// create new cuda agent and add to the map
8181
for (auto it = am.cbegin(); it != am.cend(); ++it) {
8282
// insert into map using value_type and store a reference to the map pair
83-
agent_map.emplace(it->first, std::make_unique<CUDAAgent>(*it->second, *this)).first;
83+
agent_map.emplace(it->first, std::make_unique<CUDAAgent>(*it->second, *this));
8484
}
8585

8686
// populate the CUDA message map
@@ -153,7 +153,7 @@ CUDASimulation::CUDASimulation(const std::shared_ptr<SubModelData> &submodel_des
153153
agent_map.emplace(it->first, std::make_unique<CUDAAgent>(*it->second, *this, masterAgent, mapping));
154154
} else {
155155
// Agent is not mapped, create regular agent
156-
agent_map.emplace(it->first, std::make_unique<CUDAAgent>(*it->second, *this)).first;
156+
agent_map.emplace(it->first, std::make_unique<CUDAAgent>(*it->second, *this));
157157
}
158158
} // insert into map using value_type
159159

0 commit comments

Comments
 (0)