From 6aa45b133956b974a992b372496b90c908d94f12 Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Mon, 13 Jan 2014 17:54:08 +0100 Subject: [PATCH] common: s/stringstream/ostream/ in str_map There is no need to specialize more than ostream : it only makes it impossible to use cerr or cout as a parameter to str_map. Reviewed-By: Christophe Courtaut Signed-off-by: Loic Dachary --- src/common/str_map.cc | 2 +- src/include/str_map.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/str_map.cc b/src/common/str_map.cc index e6351599f67f..ef9b7d41bc06 100644 --- a/src/common/str_map.cc +++ b/src/common/str_map.cc @@ -24,7 +24,7 @@ using namespace std; int get_str_map(const string &str, - stringstream &ss, + ostream &ss, map *str_map) { json_spirit::mValue json; diff --git a/src/include/str_map.h b/src/include/str_map.h index efae903d6387..eabe8d2023be 100644 --- a/src/include/str_map.h +++ b/src/include/str_map.h @@ -53,7 +53,7 @@ * @return **0** on success or a -EINVAL on error. */ extern int get_str_map(const std::string &str, - std::stringstream &ss, + std::ostream &ss, std::map *str_map); #endif -- 2.47.3