summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-02-23 09:11:56 +0100
committerBardur Arantsson <bardur@scientician.net>2015-02-23 09:11:56 +0100
commit450285a178d83411cb7ebce70ca2406c7e74ae18 (patch)
treeb24883478289ce34112e69fff93f07e777e31403
parentcd7be5b3001b8251545af526ee6a3ee15562c930 (diff)
Restrict stringstream to ostringstream in spell_school_name
No need for a full stringstream, just need the output portion.
-rw-r--r--src/spells4.cc2
1 files changed, 1 insertions, 1 deletions
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))