diff options
author | Bardur Arantsson <bardur@scientician.net> | 2014-12-16 18:28:59 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2014-12-16 18:28:59 +0100 |
commit | ff252acf7f2f38e33017e82881c95825b54c7cee (patch) | |
tree | 847349e828d65445b340c7d9c31a03c50bcc8a69 /src/xtra2.cc | |
parent | a25ce2e8e0c3132503cef23c56e4408f034b6558 (diff) |
Replace uses of stricmp with boost::algorithm::iequals
Diffstat (limited to 'src/xtra2.cc')
-rw-r--r-- | src/xtra2.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/xtra2.cc b/src/xtra2.cc index dd9b788a..397ca133 100644 --- a/src/xtra2.cc +++ b/src/xtra2.cc @@ -18,6 +18,10 @@ #include "quark.h" #include "hooks.h" +#include <boost/algorithm/string/predicate.hpp> + +using boost::algorithm::iequals; + /* * Invoke The Rush */ @@ -5572,7 +5576,7 @@ bool_ test_object_wish(char *name, object_type *o_ptr, object_type *forge, const object_desc(buf, o_ptr, FALSE, 0); strlower(buf); - if (!stricmp(buf, name)) + if (iequals(buf, name)) { /* Don't search any more */ return TRUE; @@ -5720,7 +5724,7 @@ void make_wish(void) } strlower(buf); - if (!stricmp(mname, buf)) + if (iequals(mname, buf)) { int wy = p_ptr->py, wx = p_ptr->px; int attempts = 100; |