diff options
author | Bardur Arantsson <bardur@scientician.net> | 2015-02-23 09:11:56 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2015-02-23 09:11:56 +0100 |
commit | 450285a178d83411cb7ebce70ca2406c7e74ae18 (patch) | |
tree | b24883478289ce34112e69fff93f07e777e31403 | |
parent | cd7be5b3001b8251545af526ee6a3ee15562c930 (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.cc | 2 |
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)) |