commit | 18d5bb18dcb4ebf7340b0b7a0b39daa887d530ce | [log] [tgz] |
---|---|---|
author | William A. Kennington III <wak@google.com> | Sat May 15 20:38:41 2021 -0700 |
committer | William A. Kennington III <wak@google.com> | Sat May 15 20:39:29 2021 -0700 |
tree | dcf19e89cc953633243a2fdf052719b941132a35 | |
parent | f54b260b6261f644a65efe5445a9e93a418c2eed [diff] [blame] |
main: Remove shared_ptr copy GCC 11 complains about it and it isn't needed. Change-Id: Ia0bb3d1aea29d0505a9868b1f922338a87710ddb Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/main.cpp b/main.cpp index 6e757aa..db15b8d 100644 --- a/main.cpp +++ b/main.cpp
@@ -84,7 +84,7 @@ static std::vector<std::shared_ptr<boost::asio::steady_timer>> timers; static bool isCanceling = false; - for (const auto timer : timers) + for (const auto& timer : timers) { timer->cancel(); }