From 21e9146eb9e093d940d95799e365a55f83ac8954 Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Tue, 19 Apr 2011 14:21:05 +0200 Subject: Refactor such that const keyword always precedes type that it qualifies --- odb/details/meta/class-p.hxx | 2 +- odb/lazy-pointer-traits.hxx | 8 ++++---- odb/pointer-traits.hxx | 8 ++++---- odb/tr1/lazy-pointer-traits.hxx | 8 ++++---- odb/tr1/pointer-traits.hxx | 8 ++++---- 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/odb/details/meta/class-p.hxx b/odb/details/meta/class-p.hxx index 1ce6c0d..fd28b1c 100644 --- a/odb/details/meta/class-p.hxx +++ b/odb/details/meta/class-p.hxx @@ -24,7 +24,7 @@ namespace odb template struct class_p { - static bool const r = sizeof (class_p_test (0)) == sizeof (yes); + static const bool r = sizeof (class_p_test (0)) == sizeof (yes); }; } } diff --git a/odb/lazy-pointer-traits.hxx b/odb/lazy-pointer-traits.hxx index 2f99bfa..70a36d0 100644 --- a/odb/lazy-pointer-traits.hxx +++ b/odb/lazy-pointer-traits.hxx @@ -17,8 +17,8 @@ namespace odb class pointer_traits< lazy_ptr > { public: - static pointer_kind const kind = pk_raw; - static bool const lazy = true; + static const pointer_kind kind = pk_raw; + static const bool lazy = true; typedef T element_type; typedef lazy_ptr pointer_type; @@ -42,8 +42,8 @@ namespace odb class pointer_traits< lazy_auto_ptr > { public: - static pointer_kind const kind = pk_unique; - static bool const lazy = true; + static const pointer_kind kind = pk_unique; + static const bool lazy = true; typedef T element_type; typedef lazy_auto_ptr pointer_type; diff --git a/odb/pointer-traits.hxx b/odb/pointer-traits.hxx index 22fb0bc..8882309 100644 --- a/odb/pointer-traits.hxx +++ b/odb/pointer-traits.hxx @@ -75,8 +75,8 @@ namespace odb class pointer_traits { public: - static pointer_kind const kind = pk_raw; - static bool const lazy = false; + static const pointer_kind kind = pk_raw; + static const bool lazy = false; typedef T element_type; typedef T* pointer_type; @@ -136,8 +136,8 @@ namespace odb class pointer_traits< std::auto_ptr > { public: - static pointer_kind const kind = pk_unique; - static bool const lazy = false; + static const pointer_kind kind = pk_unique; + static const bool lazy = false; typedef T element_type; typedef std::auto_ptr pointer_type; diff --git a/odb/tr1/lazy-pointer-traits.hxx b/odb/tr1/lazy-pointer-traits.hxx index bdbfbfe..4e29abd 100644 --- a/odb/tr1/lazy-pointer-traits.hxx +++ b/odb/tr1/lazy-pointer-traits.hxx @@ -17,8 +17,8 @@ namespace odb class pointer_traits > { public: - static pointer_kind const kind = pk_shared; - static bool const lazy = true; + static const pointer_kind kind = pk_shared; + static const bool lazy = true; typedef T element_type; typedef tr1::lazy_shared_ptr pointer_type; @@ -42,8 +42,8 @@ namespace odb class pointer_traits > { public: - static pointer_kind const kind = pk_weak; - static bool const lazy = true; + static const pointer_kind kind = pk_weak; + static const bool lazy = true; typedef T element_type; typedef tr1::lazy_weak_ptr pointer_type; diff --git a/odb/tr1/pointer-traits.hxx b/odb/tr1/pointer-traits.hxx index 431685e..80f6419 100644 --- a/odb/tr1/pointer-traits.hxx +++ b/odb/tr1/pointer-traits.hxx @@ -23,8 +23,8 @@ namespace odb class pointer_traits > { public: - static pointer_kind const kind = pk_shared; - static bool const lazy = false; + static const pointer_kind kind = pk_shared; + static const bool lazy = false; typedef T element_type; typedef std::tr1::shared_ptr pointer_type; @@ -69,8 +69,8 @@ namespace odb class pointer_traits > { public: - static pointer_kind const kind = pk_weak; - static bool const lazy = false; + static const pointer_kind kind = pk_weak; + static const bool lazy = false; typedef T element_type; typedef std::tr1::weak_ptr pointer_type; -- cgit v1.1