summaryrefslogtreecommitdiffstats
path: root/src/dal
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-03-26 20:04:36 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-03-26 20:04:49 +0200
commit2f68a9da7121ab2adaa70ff257577ee596b4c4ee (patch)
treed858a2eb16f2a89a856015a15396b87b835d12cd /src/dal
parent53b547b11fb3c34bd6e2ae0bae0090f2677ef529 (diff)
downloadmanaserv-2f68a9da7121ab2adaa70ff257577ee596b4c4ee.tar.gz
manaserv-2f68a9da7121ab2adaa70ff257577ee596b4c4ee.tar.xz
manaserv-2f68a9da7121ab2adaa70ff257577ee596b4c4ee.zip
Some general cleanups and merged Being::perform() into update()
The main change here is to remove the separate calling of 'perform' on all beings, and rather rely on the beings to do whatever they were doing in that function when the virtual 'update' function is called. Reviewed-by: Yohann Ferreira
Diffstat (limited to 'src/dal')
-rw-r--r--src/dal/sqlitedataprovider.cpp14
-rw-r--r--src/dal/sqlitedataprovider.h14
2 files changed, 13 insertions, 15 deletions
diff --git a/src/dal/sqlitedataprovider.cpp b/src/dal/sqlitedataprovider.cpp
index cc698f6..8054f1f 100644
--- a/src/dal/sqlitedataprovider.cpp
+++ b/src/dal/sqlitedataprovider.cpp
@@ -20,11 +20,19 @@
#include "sqlitedataprovider.h"
-#include <stdexcept>
-
#include "dalexcept.h"
-#include "../utils/logger.h"
+#include "common/configuration.h"
+#include "utils/logger.h"
+
+#include <stdexcept>
+#include <limits.h>
+
+// sqlite3_int64 is the preferred new datatype for 64-bit int values.
+// see: http://www.sqlite.org/capi3ref.html#sqlite3_int64
+#ifndef sqlite3_int64
+typedef sqlite_int64 sqlite3_int64;
+#endif
namespace dal
{
diff --git a/src/dal/sqlitedataprovider.h b/src/dal/sqlitedataprovider.h
index e948f00..107290b 100644
--- a/src/dal/sqlitedataprovider.h
+++ b/src/dal/sqlitedataprovider.h
@@ -21,20 +21,10 @@
#ifndef SQLITE_DATA_PROVIDER_H
#define SQLITE_DATA_PROVIDER_H
+#include "dataprovider.h"
+
#include <iosfwd>
-#include "limits.h"
#include <sqlite3.h>
-#include "common/configuration.h"
-
-
-// sqlite3_int64 is the preferred new datatype for 64-bit int values.
-// see: http://www.sqlite.org/capi3ref.html#sqlite3_int64
-#ifndef sqlite3_int64
-typedef sqlite_int64 sqlite3_int64;
-#endif
-
-
-#include "dataprovider.h"
namespace dal
{