summaryrefslogtreecommitdiff
path: root/src/util.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-07-22 09:26:54 +0100
committerCarl Hetherington <cth@carlh.net>2016-07-22 09:26:54 +0100
commite245921978ee9c7c6e025c7416bdf808d789fa44 (patch)
tree17a6c18cc1d0294f7e87d7c6638d4cc23f81b7e5 /src/util.cc
parentd7e0ebee4d94f10a8b80c1e61bf7b162c6a1ac12 (diff)
Use locked_sstream.
Diffstat (limited to 'src/util.cc')
-rw-r--r--src/util.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/util.cc b/src/util.cc
index 66490c1..57f5e1c 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -18,13 +18,12 @@
*/
#include "util.h"
+#include <locked_sstream.h>
#include <string>
-#include <sstream>
#include <iostream>
#include <cstdio>
using std::string;
-using std::stringstream;
using std::getline;
using boost::optional;
@@ -44,7 +43,7 @@ sub::empty_or_white_space (string s)
}
optional<string>
-sub::get_line_stringstream (stringstream* str)
+sub::get_line_stringstream (locked_stringstream* str)
{
if (!str->good ()) {
return optional<string> ();