summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/sqldbm.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-28 19:46:18 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-28 19:46:18 +0000
commit21361a5df873316c55c3e4e494249377149b2334 (patch)
tree410c4f3b4475ee721a412302d51cf27529530e30 /crawl-ref/source/sqldbm.cc
parentb94440dcf7c44d70948fb30166651cc0c13145b9 (diff)
downloadcrawl-ref-21361a5df873316c55c3e4e494249377149b2334.tar.gz
crawl-ref-21361a5df873316c55c3e4e494249377149b2334.zip
Add whitespace fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7054 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/sqldbm.cc')
-rw-r--r--crawl-ref/source/sqldbm.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/crawl-ref/source/sqldbm.cc b/crawl-ref/source/sqldbm.cc
index db6c1f0606..68f798261b 100644
--- a/crawl-ref/source/sqldbm.cc
+++ b/crawl-ref/source/sqldbm.cc
@@ -2,7 +2,7 @@
* File: sqldbm.cc
* Summary: dbm wrapper for SQLite
* Written by: Darshan Shaligram
- *
+ *
* Modified for Crawl Reference by $Author$ on $Date$
*/
@@ -49,12 +49,12 @@ int SQL_DBM::open(const std::string &s)
if (!s.empty())
dbfile = s;
-
+
if (!dbfile.empty())
{
if (dbfile.find(".db") != dbfile.length() - 3)
dbfile += ".db";
-
+
if (ec( sqlite3_open(dbfile.c_str(), &db) ) != SQLITE_OK)
{
std::string saveerr = error;
@@ -140,7 +140,7 @@ std::string SQL_DBM::query(const std::string &key)
std::string res;
while ((err = ec(sqlite3_step(s_query))) == SQLITE_ROW)
res = (const char *) sqlite3_column_text(s_query, 0);
-
+
sqlite3_reset(s_query);
return (res);
@@ -150,7 +150,7 @@ std::auto_ptr<std::string> SQL_DBM::firstkey()
{
if (init_iterator() != SQLITE_OK)
{
- std::auto_ptr<std::string> result;
+ std::auto_ptr<std::string> result;
return (result);
}
@@ -159,7 +159,7 @@ std::auto_ptr<std::string> SQL_DBM::firstkey()
std::auto_ptr<std::string> SQL_DBM::nextkey()
{
- std::auto_ptr<std::string> result;
+ std::auto_ptr<std::string> result;
if (s_iterator)
{
int err = SQLITE_OK;
@@ -170,7 +170,7 @@ std::auto_ptr<std::string> SQL_DBM::nextkey()
else
sqlite3_reset(s_iterator);
}
- return (result);
+ return (result);
}
int SQL_DBM::init_query()