summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_dgnit.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-11-04 17:18:19 +0100
committerAdam Borowski <kilobyte@angband.pl>2012-11-04 17:18:19 +0100
commit2d0488338ac2a0388167c9e8b73766ae8af1e8d4 (patch)
treec92aa786daa5e2f0782de9234d70fcb0fdfaf700 /crawl-ref/source/l_dgnit.cc
parent177cfa8d1158dd7c2ed8c995cf1ee706f1492f80 (diff)
parent59910180e554e796fe4a8b1f095f88dccbe0ac89 (diff)
downloadcrawl-ref-2d0488338ac2a0388167c9e8b73766ae8af1e8d4.tar.gz
crawl-ref-2d0488338ac2a0388167c9e8b73766ae8af1e8d4.zip
Merge branch 'master' into mon-pick
Merge commits instead of rerere suck, but not being able to comfortably use the test rig sucks even more.
Diffstat (limited to 'crawl-ref/source/l_dgnit.cc')
-rw-r--r--crawl-ref/source/l_dgnit.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/crawl-ref/source/l_dgnit.cc b/crawl-ref/source/l_dgnit.cc
index eed4ca7635..8c392c47ad 100644
--- a/crawl-ref/source/l_dgnit.cc
+++ b/crawl-ref/source/l_dgnit.cc
@@ -25,7 +25,7 @@ static item_list _lua_get_ilist(lua_State *ls, int ndx)
const char *spec = lua_tostring(ls, ndx);
item_list ilist;
- const std::string err = ilist.add_item(spec);
+ const string err = ilist.add_item(spec);
if (!err.empty())
luaL_error(ls, err.c_str());
@@ -99,8 +99,8 @@ static int dgn_item_property_set(lua_State *ls)
{
if (item_def *item = clua_get_item(ls, 1))
{
- const std::string key = luaL_checkstring(ls, 2);
- const std::string type = luaL_checkstring(ls, 3);
+ const string key = luaL_checkstring(ls, 2);
+ const string type = luaL_checkstring(ls, 3);
if (type.empty() || type.length() > 1)
{
luaL_error(ls, "Expected type: [BbSifsC], got: '%s'",
@@ -143,8 +143,8 @@ static int dgn_item_property(lua_State *ls)
{
if (item_def *item = clua_get_item(ls, 1))
{
- const std::string key = luaL_checkstring(ls, 2);
- const std::string type = luaL_checkstring(ls, 3);
+ const string key = luaL_checkstring(ls, 2);
+ const string type = luaL_checkstring(ls, 3);
if (type.empty() || type.length() > 1)
{
luaL_error(ls, "Expected type: [BbSifsC], got: '%s'",
@@ -198,8 +198,8 @@ static int dgn_stash_items(lua_State *ls)
unsigned min_value = lua_isnumber(ls, 1) ? luaL_checkint(ls, 1) : 0;
bool skip_stackable = lua_isboolean(ls, 2) ? lua_toboolean(ls, 2)
: false;
- std::vector<const item_def*> floor_items;
- std::vector<const item_def*> shop_items;
+ vector<const item_def*> floor_items;
+ vector<const item_def*> shop_items;
for (ST_ItemIterator stii; stii; ++stii)
{