From 70ccc8523ab826b41f0ddc11dd7f464ffcd77ba3 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 26 Apr 2011 15:19:48 +0200 Subject: Use struct instead of class in specialization --- odb/qt/basic/mysql/qbyte-array-traits.hxx | 5 ++--- odb/qt/basic/sqlite/qbyte-array-traits.hxx | 5 ++--- odb/qt/date-time/mysql/qdate-time-traits.hxx | 8 +++----- odb/qt/date-time/mysql/qdate-traits.hxx | 5 ++--- odb/qt/date-time/mysql/qtime-traits.hxx | 5 ++--- odb/qt/date-time/sqlite/qdate-time-traits.hxx | 8 +++----- odb/qt/date-time/sqlite/qdate-traits.hxx | 8 +++----- odb/qt/date-time/sqlite/qtime-traits.hxx | 8 +++----- 8 files changed, 20 insertions(+), 32 deletions(-) diff --git a/odb/qt/basic/mysql/qbyte-array-traits.hxx b/odb/qt/basic/mysql/qbyte-array-traits.hxx index e31c82d..0c1a5b8 100644 --- a/odb/qt/basic/mysql/qbyte-array-traits.hxx +++ b/odb/qt/basic/mysql/qbyte-array-traits.hxx @@ -21,9 +21,8 @@ namespace odb namespace mysql { template <> - class default_value_traits + struct default_value_traits { - public: typedef QByteArray value_type; typedef QByteArray query_type; typedef details::buffer image_type; @@ -63,7 +62,7 @@ namespace odb }; template <> - class default_type_traits + struct default_type_traits { static const database_type_id db_type_id = id_blob; }; diff --git a/odb/qt/basic/sqlite/qbyte-array-traits.hxx b/odb/qt/basic/sqlite/qbyte-array-traits.hxx index 3ec8a43..0ab4835 100644 --- a/odb/qt/basic/sqlite/qbyte-array-traits.hxx +++ b/odb/qt/basic/sqlite/qbyte-array-traits.hxx @@ -21,9 +21,8 @@ namespace odb namespace sqlite { template <> - class default_value_traits + struct default_value_traits { - public: typedef QByteArray value_type; typedef QByteArray query_type; typedef details::buffer image_type; @@ -62,7 +61,7 @@ namespace odb }; template <> - class default_type_traits + struct default_type_traits { static const database_type_id db_type_id = id_blob; }; diff --git a/odb/qt/date-time/mysql/qdate-time-traits.hxx b/odb/qt/date-time/mysql/qdate-time-traits.hxx index dfe9d9d..fcb2d79 100644 --- a/odb/qt/date-time/mysql/qdate-time-traits.hxx +++ b/odb/qt/date-time/mysql/qdate-time-traits.hxx @@ -17,9 +17,8 @@ namespace odb namespace mysql { template <> - class default_value_traits + struct default_value_traits { - public: typedef QDateTime value_type; typedef QDateTime query_type; typedef MYSQL_TIME image_type; @@ -67,9 +66,8 @@ namespace odb }; template <> - class default_value_traits + struct default_value_traits { - public: typedef QDateTime value_type; typedef QDateTime query_type; typedef MYSQL_TIME image_type; @@ -117,7 +115,7 @@ namespace odb }; template <> - class default_type_traits + struct default_type_traits { static const database_type_id db_type_od = id_datetime; }; diff --git a/odb/qt/date-time/mysql/qdate-traits.hxx b/odb/qt/date-time/mysql/qdate-traits.hxx index 6f7bc88..4f1c753 100644 --- a/odb/qt/date-time/mysql/qdate-traits.hxx +++ b/odb/qt/date-time/mysql/qdate-traits.hxx @@ -18,9 +18,8 @@ namespace odb namespace mysql { template <> - class default_value_traits + struct default_value_traits { - public: typedef QDate value_type; typedef QDate query_type; typedef MYSQL_TIME image_type; @@ -58,7 +57,7 @@ namespace odb }; template <> - class default_type_traits + struct default_type_traits { static const database_type_id db_type_id = id_date; }; diff --git a/odb/qt/date-time/mysql/qtime-traits.hxx b/odb/qt/date-time/mysql/qtime-traits.hxx index 5470678..f984f1a 100644 --- a/odb/qt/date-time/mysql/qtime-traits.hxx +++ b/odb/qt/date-time/mysql/qtime-traits.hxx @@ -17,9 +17,8 @@ namespace odb namespace mysql { template <> - class default_value_traits + struct default_value_traits { - public: typedef QTime value_type; typedef QTime query_type; typedef MYSQL_TIME image_type; @@ -59,7 +58,7 @@ namespace odb }; template <> - class default_type_traits + struct default_type_traits { static const database_type_id db_type_id = id_time; }; diff --git a/odb/qt/date-time/sqlite/qdate-time-traits.hxx b/odb/qt/date-time/sqlite/qdate-time-traits.hxx index 07c72c1..f36852f 100644 --- a/odb/qt/date-time/sqlite/qdate-time-traits.hxx +++ b/odb/qt/date-time/sqlite/qdate-time-traits.hxx @@ -23,9 +23,8 @@ namespace odb namespace sqlite { template <> - class default_value_traits + struct default_value_traits { - public: typedef QDateTime value_type; typedef QDateTime query_type; typedef details::buffer image_type; @@ -74,9 +73,8 @@ namespace odb // The integer value represents UNIX time. // template <> - class default_value_traits + struct default_value_traits { - public: typedef QDateTime value_type; typedef QDateTime query_type; typedef long long image_type; @@ -113,7 +111,7 @@ namespace odb }; template <> - class default_type_traits + struct default_type_traits { static const database_type_id db_type_id = id_text; }; diff --git a/odb/qt/date-time/sqlite/qdate-traits.hxx b/odb/qt/date-time/sqlite/qdate-traits.hxx index f1967ce..7d8215b 100644 --- a/odb/qt/date-time/sqlite/qdate-traits.hxx +++ b/odb/qt/date-time/sqlite/qdate-traits.hxx @@ -23,9 +23,8 @@ namespace odb namespace sqlite { template <> - class default_value_traits + struct default_value_traits { - public: typedef QDate value_type; typedef QDate query_type; typedef details::buffer image_type; @@ -74,9 +73,8 @@ namespace odb // integer value represents UNIX time. // template <> - class default_value_traits + struct default_value_traits { - public: typedef QDate value_type; typedef QDate query_type; typedef long long image_type; @@ -116,7 +114,7 @@ namespace odb }; template <> - class default_type_traits + struct default_type_traits { static const database_type_id db_type_id = id_text; }; diff --git a/odb/qt/date-time/sqlite/qtime-traits.hxx b/odb/qt/date-time/sqlite/qtime-traits.hxx index cf139b0..d50332f 100644 --- a/odb/qt/date-time/sqlite/qtime-traits.hxx +++ b/odb/qt/date-time/sqlite/qtime-traits.hxx @@ -22,9 +22,8 @@ namespace odb namespace sqlite { template <> - class default_value_traits + struct default_value_traits { - public: typedef QTime value_type; typedef QTime query_type; typedef details::buffer image_type; @@ -74,9 +73,8 @@ namespace odb // integer value represents seconds since midnight. // template <> - class default_value_traits + struct default_value_traits { - public: typedef QTime value_type; typedef QTime query_type; typedef long long image_type; @@ -108,7 +106,7 @@ namespace odb }; template <> - class default_type_traits + struct default_type_traits { static const database_type_id db_type_id = id_text; }; -- cgit v1.1