summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/message.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-07-05 02:40:37 +0200
committerAdam Borowski <kilobyte@angband.pl>2011-07-05 02:40:37 +0200
commit61edc30a67b15b1577d7a355c0b4e64b0848d747 (patch)
treec31f522fb79db31c1792af14daed8afd6507c977 /crawl-ref/source/message.h
parent52acb806cc85d5e34a20517b02594c161dad9cdd (diff)
downloadcrawl-ref-61edc30a67b15b1577d7a355c0b4e64b0848d747.tar.gz
crawl-ref-61edc30a67b15b1577d7a355c0b4e64b0848d747.zip
cppcheck: pass const strings by reference. Alloc + copy less.
Diffstat (limited to 'crawl-ref/source/message.h')
-rw-r--r--crawl-ref/source/message.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/message.h b/crawl-ref/source/message.h
index 27b9551698..7bac2541a8 100644
--- a/crawl-ref/source/message.h
+++ b/crawl-ref/source/message.h
@@ -36,8 +36,8 @@ void formatted_message_history(const std::string &st,
int wrap_col = 0);
// mpr() an arbitrarily long list of strings
-void mpr_comma_separated_list(const std::string prefix,
- const std::vector<std::string> list,
+void mpr_comma_separated_list(const std::string &prefix,
+ const std::vector<std::string> &list,
const std::string &andc = ", and ",
const std::string &comma = ", ",
const msg_channel_type channel = MSGCH_PLAIN,