]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common: s/stringstream/ostream/ in str_map 1900/head
authorLoic Dachary <loic@dachary.org>
Mon, 13 Jan 2014 16:54:08 +0000 (17:54 +0100)
committerLoic Dachary <loic@dachary.org>
Sat, 31 May 2014 11:13:05 +0000 (13:13 +0200)
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 <christophe.courtaut@gmail.com>
Signed-off-by: Loic Dachary <loic@dachary.org>
src/common/str_map.cc
src/include/str_map.h

index e6351599f67ff5ec9c1427102d9b4cf1f7fe7e01..ef9b7d41bc06f5b1dba09020fb496d1bbc638f5d 100644 (file)
@@ -24,7 +24,7 @@
 using namespace std;
 
 int get_str_map(const string &str,
-                stringstream &ss,
+                ostream &ss,
                 map<string,string> *str_map)
 {
   json_spirit::mValue json;
index efae903d6387b696aa3c956a4348a36e2b395626..eabe8d2023bec1cbc8eac60c4ea69481dadac32c 100644 (file)
@@ -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<std::string,std::string> *str_map);
 
 #endif