aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2021-06-15 10:56:10 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2021-06-15 10:56:10 +0200
commit2b368315f9a63e54aa6bda20390c53b2d9bd3069 (patch)
tree8e07e5df0f9cb46bc99d93bcc3d833ac1f02c995
parentf4e6037864f353a0deb3b40a4533cffa70bc201f (diff)
downloadODR-SourceCompanion-next.tar.gz
ODR-SourceCompanion-next.tar.bz2
ODR-SourceCompanion-next.zip
Common bf60e06: ClockTAI string copynext
-rw-r--r--lib/ClockTAI.cpp4
1 files changed, 2 insertions, 2 deletions
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<std::string>& 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;