From 8028302eb5b5f6ea77e57887f3b31bd9abafeb27 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 20 Jan 2017 11:17:13 +0100 Subject: Clear the bulletin stringbuffer in an backwards-compatible way --- src/ClockTAI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ClockTAI.cpp') 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); -- cgit v1.2.3