aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-09-06 16:50:57 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-09-06 16:50:57 +0200
commit017ba71bd4ab26c45de2a27d030bf0010ae0a173 (patch)
tree6c3c09ab9ebb7f9a8531f0748e234a694270e478
parent0979184f66b49440758b7fc2b81172af7fe47ad8 (diff)
Stylistic changes
-rw-r--r--odb/mysql/object-result.hxx4
-rw-r--r--odb/mysql/view-result.hxx4
-rw-r--r--odb/mysql/view-result.txx6
3 files changed, 6 insertions, 8 deletions
diff --git a/odb/mysql/object-result.hxx b/odb/mysql/object-result.hxx
index 6061536..c7fcbae 100644
--- a/odb/mysql/object-result.hxx
+++ b/odb/mysql/object-result.hxx
@@ -10,13 +10,13 @@
#include <cstddef> // std::size_t
+#include <odb/details/shared-ptr.hxx>
+
#include <odb/mysql/version.hxx>
#include <odb/mysql/forward.hxx> // query, object_statements
#include <odb/mysql/result.hxx>
#include <odb/mysql/statement.hxx>
-#include <odb/details/shared-ptr.hxx>
-
namespace odb
{
namespace mysql
diff --git a/odb/mysql/view-result.hxx b/odb/mysql/view-result.hxx
index 890ca42..23f0541 100644
--- a/odb/mysql/view-result.hxx
+++ b/odb/mysql/view-result.hxx
@@ -10,13 +10,13 @@
#include <cstddef> // std::size_t
+#include <odb/details/shared-ptr.hxx>
+
#include <odb/mysql/version.hxx>
#include <odb/mysql/forward.hxx> // query, view_statements
#include <odb/mysql/result.hxx>
#include <odb/mysql/statement.hxx>
-#include <odb/details/shared-ptr.hxx>
-
namespace odb
{
namespace mysql
diff --git a/odb/mysql/view-result.txx b/odb/mysql/view-result.txx
index 51f3d6f..7adf036 100644
--- a/odb/mysql/view-result.txx
+++ b/odb/mysql/view-result.txx
@@ -38,11 +38,9 @@ namespace odb
fetch ();
odb::database& db (this->database ());
- view_traits::callback (db, view, callback_event::pre_load);
-
- typename view_traits::image_type& i (statements_.image ());
- view_traits::init (view, i);
+ view_traits::callback (db, view, callback_event::pre_load);
+ view_traits::init (view, statements_.image ());
view_traits::callback (db, view, callback_event::post_load);
}