From 21361a5df873316c55c3e4e494249377149b2334 Mon Sep 17 00:00:00 2001 From: dolorous Date: Sun, 28 Sep 2008 19:46:18 +0000 Subject: Add whitespace fixes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7054 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/sqldbm.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'crawl-ref/source/sqldbm.cc') 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 SQL_DBM::firstkey() { if (init_iterator() != SQLITE_OK) { - std::auto_ptr result; + std::auto_ptr result; return (result); } @@ -159,7 +159,7 @@ std::auto_ptr SQL_DBM::firstkey() std::auto_ptr SQL_DBM::nextkey() { - std::auto_ptr result; + std::auto_ptr result; if (s_iterator) { int err = SQLITE_OK; @@ -170,7 +170,7 @@ std::auto_ptr SQL_DBM::nextkey() else sqlite3_reset(s_iterator); } - return (result); + return (result); } int SQL_DBM::init_query() -- cgit v1.2.3-54-g00ecf