From 455475575bcfa30aa60a377235bfaf2fd7bc2da7 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 22 Jul 2016 09:20:58 +0100 Subject: Use locked_sstream. Replace once parse_stream with parse_memory. --- src/key.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/key.cc') diff --git a/src/key.cc b/src/key.cc index d2417a09..cf7b4d6d 100644 --- a/src/key.cc +++ b/src/key.cc @@ -36,15 +36,14 @@ */ #include "key.h" +#include #include #include #include -#include #include #include using std::string; -using std::stringstream; using std::setw; using std::setfill; using namespace dcp; @@ -94,7 +93,7 @@ Key::operator= (Key const & other) string Key::hex () const { - stringstream g; + locked_stringstream g; for (unsigned int i = 0; i < ASDCP::KeyLen; ++i) { g << setw(2) << setfill('0') << std::hex << static_cast (_value[i]); -- cgit v1.2.3