summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-damage.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/spl-damage.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/spl-damage.h')
-rw-r--r--crawl-ref/source/spl-damage.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-damage.h b/crawl-ref/source/spl-damage.h
index bf3b13c81e..9101c77a42 100644
--- a/crawl-ref/source/spl-damage.h
+++ b/crawl-ref/source/spl-damage.h
@@ -31,7 +31,7 @@ void tornado_damage(actor *caster, int dur);
void cancel_tornado();
actor* forest_near_enemy(const actor *mon);
-void forest_message(const coord_def pos, const std::string msg,
+void forest_message(const coord_def pos, const std::string &msg,
msg_channel_type ch = MSGCH_PLAIN);
void forest_damage(const actor *mon);
#endif