commit | 6764501d3bdaabe9c60e81ec3a3116e4a94102e6 | [log] [tgz] |
---|---|---|
author | AlexanderSaydakov <AlexanderSaydakov@users.noreply.github.com> | Thu Mar 26 18:06:43 2020 -0700 |
committer | AlexanderSaydakov <AlexanderSaydakov@users.noreply.github.com> | Thu Mar 26 18:06:43 2020 -0700 |
tree | 84d420aa421ebb9eb55275400b5b328e4a94d137 | |
parent | 2077b1208980b4271bdce361bf47d4915cc4a482 [diff] |
use moving update
diff --git a/cpp/src/cpc_union_accuracy_profile.cpp b/cpp/src/cpc_union_accuracy_profile.cpp index 983e775..7718abb 100644 --- a/cpp/src/cpc_union_accuracy_profile.cpp +++ b/cpp/src/cpc_union_accuracy_profile.cpp
@@ -43,7 +43,7 @@ } count += delta; for (auto& sketch: sketches) { - u.update(*sketch); + u.update(std::move(*sketch)); } cpc_sketch result = u.get_result(); stat.update(
diff --git a/cpp/src/theta_union_accuracy_profile.cpp b/cpp/src/theta_union_accuracy_profile.cpp index 5964f88..61cf67e 100644 --- a/cpp/src/theta_union_accuracy_profile.cpp +++ b/cpp/src/theta_union_accuracy_profile.cpp
@@ -45,7 +45,7 @@ } count += delta; for (auto& sketch: sketches) { - u.update(*sketch); + u.update(std::move(*sketch)); } compact_theta_sketch result = u.get_result(); stat.update(