From: Loic Dachary Date: Mon, 13 Jan 2014 16:54:08 +0000 (+0100) Subject: common: s/stringstream/ostream/ in str_map X-Git-Tag: v0.82~18^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6aa45b133956b974a992b372496b90c908d94f12;p=ceph.git 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 --- 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