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/artefact.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/artefact.h')
-rw-r--r-- | crawl-ref/source/artefact.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/artefact.h b/crawl-ref/source/artefact.h index 6371a874b0..8be315446c 100644 --- a/crawl-ref/source/artefact.h +++ b/crawl-ref/source/artefact.h @@ -100,7 +100,7 @@ std::string get_artefact_name(const item_def &item, bool force_known = false); void set_artefact_name(item_def &item, const std::string &name); std::string make_artefact_name(const item_def &item, bool appearance = false); -std::string replace_name_parts(const std::string name_in, const item_def& item); +std::string replace_name_parts(const std::string &name_in, const item_def& item); const char *unrandart_descrip(int which_descrip, const item_def &item); |