summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-01-20 11:17:13 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-01-20 11:17:13 +0100
commit8028302eb5b5f6ea77e57887f3b31bd9abafeb27 (patch)
tree094c8cc1d8a5fafbe61a59041af3ae8a8debda82
parent19e8424cd38fde66961915d51bdffbf6611b7414 (diff)
downloaddabmux-8028302eb5b5f6ea77e57887f3b31bd9abafeb27.tar.gz
dabmux-8028302eb5b5f6ea77e57887f3b31bd9abafeb27.tar.bz2
dabmux-8028302eb5b5f6ea77e57887f3b31bd9abafeb27.zip
Clear the bulletin stringbuffer in an backwards-compatible way
-rw-r--r--src/ClockTAI.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ClockTAI.cpp b/src/ClockTAI.cpp
index e38eca1..6d05370 100644
--- a/src/ClockTAI.cpp
+++ b/src/ClockTAI.cpp
@@ -83,8 +83,8 @@ int ClockTAI::download_offset_task()
bool offset_valid = false;
// Clear the bulletin
- std::stringstream new_bulletin;
- m_bulletin.swap(new_bulletin);
+ m_bulletin.str("");
+ m_bulletin.clear();
try {
download_tai_utc_bulletin(tai_ietf_url);