From 2b368315f9a63e54aa6bda20390c53b2d9bd3069 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Tue, 15 Jun 2021 10:56:10 +0200 Subject: Common bf60e06: ClockTAI string copy --- lib/ClockTAI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/ClockTAI.cpp b/lib/ClockTAI.cpp index 626140e..bfa7895 100644 --- a/lib/ClockTAI.cpp +++ b/lib/ClockTAI.cpp @@ -314,7 +314,7 @@ ClockTAI::ClockTAI(const std::vector& bulletin_urls) : m_bulletin_urls = bulletin_urls; } - for (const auto url : m_bulletin_urls) { + for (const auto& url : m_bulletin_urls) { etiLog.level(info) << "TAI Bulletin URL: '" << url << "'"; } } @@ -359,7 +359,7 @@ int ClockTAI::get_valid_offset() #endif } else { - for (const auto url : m_bulletin_urls) { + for (const auto& url : m_bulletin_urls) { try { #if TAI_TEST etiLog.level(info) << "Load bulletin from " << url; -- cgit v1.2.3