diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-09-26 11:42:03 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-09-26 11:42:03 +0000 |
commit | 592c6a235e81c40fd67cddaa429326d2397979a9 (patch) | |
tree | 80d525ad032fcca95345d42b68f2f621b1aeb668 /crawl-ref/source/stash.cc | |
parent | e8c6cd983a488b452fa1b8355c38c5fa92e626a3 (diff) | |
download | crawl-ref-592c6a235e81c40fd67cddaa429326d2397979a9.tar.gz crawl-ref-592c6a235e81c40fd67cddaa429326d2397979a9.zip |
Killed a lot of libunix.cc which is no longer necessary with the new
command dispatch mechanism.
Cleaned up all remaining variable shadowing warnings.
Added -Wshadow and -pedantic to CFLAGS.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup@135 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/stash.cc')
-rw-r--r-- | crawl-ref/source/stash.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/stash.cc b/crawl-ref/source/stash.cc index ae512cd019..567982800b 100644 --- a/crawl-ref/source/stash.cc +++ b/crawl-ref/source/stash.cc @@ -713,12 +713,12 @@ bool ShopInfo::matches_search(const std::string &prefix, for (unsigned i = 0; i < items.size(); ++i) { - std::string name = shop_item_name(items[i]); + std::string sname = shop_item_name(items[i]); std::string ann = stash_annotate_item( LUA_SEARCH_ANNOTATE, &items[i].item, true); bool thismatch = false; - if (search.matches(prefix + " " + ann + name)) + if (search.matches(prefix + " " + ann + sname)) thismatch = true; else { @@ -730,7 +730,7 @@ bool ShopInfo::matches_search(const std::string &prefix, if (thismatch) { if (!res.count++) - res.match = name; + res.match = sname; res.matches++; } } @@ -1038,11 +1038,11 @@ void LevelStashes::write(std::ostream &os, bool identify) const { const Stash &s = stashes.begin()->second; int refx = s.getX(), refy = s.getY(); - std::string level_name = short_level_name(); + std::string levname = short_level_name(); for (c_stashes::const_iterator iter = stashes.begin(); iter != stashes.end(); iter++) { - iter->second.write(os, refx, refy, level_name, identify); + iter->second.write(os, refx, refy, levname, identify); } } os << std::endl; |