diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-07-05 02:40:37 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-07-05 02:40:37 +0200 |
commit | 61edc30a67b15b1577d7a355c0b4e64b0848d747 (patch) | |
tree | c31f522fb79db31c1792af14daed8afd6507c977 /crawl-ref/source/spl-damage.h | |
parent | 52acb806cc85d5e34a20517b02594c161dad9cdd (diff) | |
download | crawl-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.h | 2 |
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 |