diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-16 12:07:03 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-16 12:07:03 +0200 |
commit | 0a95a3e57d152f154af5d07d537e0c99b374a20f (patch) | |
tree | 6f4df0401292122c85fd1c9faeb28e3c4e8da1d6 /odb/database.txx | |
parent | c56f32eb5e0b88ef8297a691f5286ba4aa4aa8b4 (diff) |
Make use of const style consistent
Diffstat (limited to 'odb/database.txx')
-rw-r--r-- | odb/database.txx | 10 |
1 files changed, 5 insertions, 5 deletions
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 T> typename object_traits<T>::pointer_type database:: - load (typename object_traits<T>::id_type const& id) + load (const typename object_traits<T>::id_type& id) { typedef object_traits<T> traits; @@ -40,7 +40,7 @@ namespace odb template <typename T> void database:: - load (typename object_traits<T>::id_type const& id, T& obj) + load (const typename object_traits<T>::id_type& id, T& obj) { if (!find<T> (id, obj)) throw object_not_persistent (); @@ -48,7 +48,7 @@ namespace odb template <typename T> typename object_traits<T>::pointer_type database:: - find (typename object_traits<T>::id_type const& id) + find (const typename object_traits<T>::id_type& id) { if (!transaction::has_current ()) throw not_in_transaction (); @@ -58,7 +58,7 @@ namespace odb template <typename T> bool database:: - find (typename object_traits<T>::id_type const& id, T& obj) + find (const typename object_traits<T>::id_type& id, T& obj) { if (!transaction::has_current ()) throw not_in_transaction (); @@ -85,7 +85,7 @@ namespace odb template <typename T> void database:: - erase (typename object_traits<T>::id_type const& id) + erase (const typename object_traits<T>::id_type& id) { if (!transaction::has_current ()) throw not_in_transaction (); |