summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/sqldbm.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-05-15 16:17:58 +0200
committerAdam Borowski <kilobyte@angband.pl>2013-05-15 16:17:58 +0200
commitfc08766bebe3e7dc71185448f5f46b1c74916366 (patch)
treebff8793e66303f0b4dc885759c5387d17dbac709 /crawl-ref/source/sqldbm.cc
parent9e32ab9491552aafef2240bc60197fb763cb0842 (diff)
downloadcrawl-ref-fc08766bebe3e7dc71185448f5f46b1c74916366.tar.gz
crawl-ref-fc08766bebe3e7dc71185448f5f46b1c74916366.zip
Fix a shadowing warning.
Diffstat (limited to 'crawl-ref/source/sqldbm.cc')
-rw-r--r--crawl-ref/source/sqldbm.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/sqldbm.cc b/crawl-ref/source/sqldbm.cc
index b71fb3e4c0..44c0d31dfe 100644
--- a/crawl-ref/source/sqldbm.cc
+++ b/crawl-ref/source/sqldbm.cc
@@ -21,13 +21,15 @@ public:
: nretries(_nretries)
{
}
+
operator bool () const
{
return nretries > 0;
}
- void check(int errcode)
+
+ void check(int err)
{
- if (errcode == SQLITE_BUSY)
+ if (err == SQLITE_BUSY)
{
--nretries;
// Give the annoying process locking the db a little time