diff options
Diffstat (limited to 'odb/qt/date-time/sqlite')
-rw-r--r-- | odb/qt/date-time/sqlite/qdate-time-traits.hxx | 8 | ||||
-rw-r--r-- | odb/qt/date-time/sqlite/qdate-traits.hxx | 8 | ||||
-rw-r--r-- | odb/qt/date-time/sqlite/qtime-traits.hxx | 8 |
3 files changed, 9 insertions, 15 deletions
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<QDateTime, id_text> + struct default_value_traits<QDateTime, id_text> { - 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<QDateTime, id_integer> + struct default_value_traits<QDateTime, id_integer> { - 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<QDateTime> + struct default_type_traits<QDateTime> { 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<QDate, id_text> + struct default_value_traits<QDate, id_text> { - 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<QDate, id_integer> + struct default_value_traits<QDate, id_integer> { - 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<QDate> + struct default_type_traits<QDate> { 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<QTime, id_text> + struct default_value_traits<QTime, id_text> { - 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<QTime, id_integer> + struct default_value_traits<QTime, id_integer> { - 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<QTime> + struct default_type_traits<QTime> { static const database_type_id db_type_id = id_text; }; |