From 0a95a3e57d152f154af5d07d537e0c99b374a20f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 16 Aug 2010 12:07:03 +0200 Subject: Make use of const style consistent --- odb/database.txx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'odb/database.txx') diff --git a/odb/database.txx b/odb/database.txx index bec3234..377df21 100644 --- a/odb/database.txx +++ b/odb/database.txx @@ -26,7 +26,7 @@ namespace odb template typename object_traits::pointer_type database:: - load (typename object_traits::id_type const& id) + load (const typename object_traits::id_type& id) { typedef object_traits traits; @@ -40,7 +40,7 @@ namespace odb template void database:: - load (typename object_traits::id_type const& id, T& obj) + load (const typename object_traits::id_type& id, T& obj) { if (!find (id, obj)) throw object_not_persistent (); @@ -48,7 +48,7 @@ namespace odb template typename object_traits::pointer_type database:: - find (typename object_traits::id_type const& id) + find (const typename object_traits::id_type& id) { if (!transaction::has_current ()) throw not_in_transaction (); @@ -58,7 +58,7 @@ namespace odb template bool database:: - find (typename object_traits::id_type const& id, T& obj) + find (const typename object_traits::id_type& id, T& obj) { if (!transaction::has_current ()) throw not_in_transaction (); @@ -85,7 +85,7 @@ namespace odb template void database:: - erase (typename object_traits::id_type const& id) + erase (const typename object_traits::id_type& id) { if (!transaction::has_current ()) throw not_in_transaction (); -- cgit v1.1