From 450285a178d83411cb7ebce70ca2406c7e74ae18 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Mon, 23 Feb 2015 09:11:56 +0100 Subject: Restrict stringstream to ostringstream in spell_school_name No need for a full stringstream, just need the output portion. --- src/spells4.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/spells4.cc b/src/spells4.cc index 9b71bbb4..b9ebc02c 100644 --- a/src/spells4.cc +++ b/src/spells4.cc @@ -399,7 +399,7 @@ void random_book_setup(s16b sval, s32b spell_idx) static std::string spell_school_name(spell_type *spell) { - std::stringstream buf; + std::ostringstream buf; bool first = true; for (s32b school_idx : spell_type_get_schools(spell)) -- cgit v1.2.3