Skip to content

Commit

Permalink
Reduce CI failures.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robadob committed Jul 8, 2022
1 parent 287715c commit 278c97e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/flamegpu/model/EnvironmentDescription.cu
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ EnvironmentDescription::EnvironmentDescription() {
EnvironmentDescription::EnvironmentDescription(const EnvironmentDescription& other)
: properties(other.properties)
, macro_properties(other.macro_properties) {
for (const auto g : other.directed_graphs) {
for (const auto &g : other.directed_graphs) {
auto t = std::shared_ptr<EnvironmentDirectedGraph::Data>(new EnvironmentDirectedGraph::Data(*g.second));
directed_graphs.emplace(g.first, t);
}
Expand All @@ -21,7 +21,7 @@ EnvironmentDescription &EnvironmentDescription::operator=(const EnvironmentDescr
properties = std::unordered_map(other.properties);
macro_properties = std::unordered_map(other.macro_properties);
directed_graphs.clear();
for (const auto g : other.directed_graphs) {
for (const auto &g : other.directed_graphs) {
auto t = std::shared_ptr<EnvironmentDirectedGraph::Data>(new EnvironmentDirectedGraph::Data(*g.second));
directed_graphs.emplace(g.first, t);
}
Expand Down

0 comments on commit 278c97e

Please sign in to comment.