From 302ec6774a0dc0ab333462c9fbd0933f33c64e54 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 24 Apr 2011 09:18:51 +0200 Subject: Get rid of image type argument in value traits template --- odb/qt/basic/mysql/qbyte-array-traits.hxx | 2 +- odb/qt/basic/mysql/qstring-traits.hxx | 12 ++++-------- odb/qt/basic/sqlite/qbyte-array-traits.hxx | 2 +- odb/qt/basic/sqlite/qstring-traits.hxx | 2 +- odb/qt/date-time/mysql/qdate-time-traits.hxx | 4 ++-- odb/qt/date-time/mysql/qdate-traits.hxx | 2 +- odb/qt/date-time/mysql/qtime-traits.hxx | 2 +- odb/qt/date-time/sqlite/qdate-time-traits.hxx | 4 ++-- odb/qt/date-time/sqlite/qdate-traits.hxx | 4 ++-- odb/qt/date-time/sqlite/qtime-traits.hxx | 4 ++-- 10 files changed, 17 insertions(+), 21 deletions(-) diff --git a/odb/qt/basic/mysql/qbyte-array-traits.hxx b/odb/qt/basic/mysql/qbyte-array-traits.hxx index f0239fd..4477278 100644 --- a/odb/qt/basic/mysql/qbyte-array-traits.hxx +++ b/odb/qt/basic/mysql/qbyte-array-traits.hxx @@ -21,7 +21,7 @@ namespace odb namespace mysql { template <> - class default_value_traits + class default_value_traits { public: typedef QByteArray value_type; diff --git a/odb/qt/basic/mysql/qstring-traits.hxx b/odb/qt/basic/mysql/qstring-traits.hxx index 0ea8e86..17f0946 100644 --- a/odb/qt/basic/mysql/qstring-traits.hxx +++ b/odb/qt/basic/mysql/qstring-traits.hxx @@ -58,26 +58,22 @@ namespace odb }; template <> - struct default_value_traits< - QString, details::buffer, id_string>: qstring_value_traits + struct default_value_traits: qstring_value_traits { }; template <> - struct default_value_traits< - QString, details::buffer, id_decimal>: qstring_value_traits + struct default_value_traits: qstring_value_traits { }; template <> - struct default_value_traits< - QString, details::buffer, id_enum>: qstring_value_traits + struct default_value_traits: qstring_value_traits { }; template <> - struct default_value_traits< - QString, details::buffer, id_set>: qstring_value_traits + struct default_value_traits: qstring_value_traits { }; diff --git a/odb/qt/basic/sqlite/qbyte-array-traits.hxx b/odb/qt/basic/sqlite/qbyte-array-traits.hxx index 5f30222..3ec8a43 100644 --- a/odb/qt/basic/sqlite/qbyte-array-traits.hxx +++ b/odb/qt/basic/sqlite/qbyte-array-traits.hxx @@ -21,7 +21,7 @@ namespace odb namespace sqlite { template <> - class default_value_traits + class default_value_traits { public: typedef QByteArray value_type; diff --git a/odb/qt/basic/sqlite/qstring-traits.hxx b/odb/qt/basic/sqlite/qstring-traits.hxx index 31a9c1f..53c4be4 100644 --- a/odb/qt/basic/sqlite/qstring-traits.hxx +++ b/odb/qt/basic/sqlite/qstring-traits.hxx @@ -21,7 +21,7 @@ namespace odb namespace sqlite { template <> - struct default_value_traits + struct default_value_traits { public: typedef QString value_type; diff --git a/odb/qt/date-time/mysql/qdate-time-traits.hxx b/odb/qt/date-time/mysql/qdate-time-traits.hxx index 9d212a3..dfe9d9d 100644 --- a/odb/qt/date-time/mysql/qdate-time-traits.hxx +++ b/odb/qt/date-time/mysql/qdate-time-traits.hxx @@ -17,7 +17,7 @@ namespace odb namespace mysql { template <> - class default_value_traits + class default_value_traits { public: typedef QDateTime value_type; @@ -67,7 +67,7 @@ namespace odb }; template <> - class default_value_traits + class default_value_traits { public: typedef QDateTime value_type; diff --git a/odb/qt/date-time/mysql/qdate-traits.hxx b/odb/qt/date-time/mysql/qdate-traits.hxx index 1034cbc..6f7bc88 100644 --- a/odb/qt/date-time/mysql/qdate-traits.hxx +++ b/odb/qt/date-time/mysql/qdate-traits.hxx @@ -18,7 +18,7 @@ namespace odb namespace mysql { template <> - class default_value_traits + class default_value_traits { public: typedef QDate value_type; diff --git a/odb/qt/date-time/mysql/qtime-traits.hxx b/odb/qt/date-time/mysql/qtime-traits.hxx index 69cd49c..5470678 100644 --- a/odb/qt/date-time/mysql/qtime-traits.hxx +++ b/odb/qt/date-time/mysql/qtime-traits.hxx @@ -17,7 +17,7 @@ namespace odb namespace mysql { template <> - class default_value_traits + class default_value_traits { public: typedef QTime value_type; diff --git a/odb/qt/date-time/sqlite/qdate-time-traits.hxx b/odb/qt/date-time/sqlite/qdate-time-traits.hxx index 85c4c1a..07c72c1 100644 --- a/odb/qt/date-time/sqlite/qdate-time-traits.hxx +++ b/odb/qt/date-time/sqlite/qdate-time-traits.hxx @@ -23,7 +23,7 @@ namespace odb namespace sqlite { template <> - class default_value_traits + class default_value_traits { public: typedef QDateTime value_type; @@ -74,7 +74,7 @@ namespace odb // The integer value represents UNIX time. // template <> - class default_value_traits + class default_value_traits { public: typedef QDateTime value_type; diff --git a/odb/qt/date-time/sqlite/qdate-traits.hxx b/odb/qt/date-time/sqlite/qdate-traits.hxx index 16940c3..f1967ce 100644 --- a/odb/qt/date-time/sqlite/qdate-traits.hxx +++ b/odb/qt/date-time/sqlite/qdate-traits.hxx @@ -23,7 +23,7 @@ namespace odb namespace sqlite { template <> - class default_value_traits + class default_value_traits { public: typedef QDate value_type; @@ -74,7 +74,7 @@ namespace odb // integer value represents UNIX time. // template <> - class default_value_traits + class default_value_traits { public: typedef QDate value_type; diff --git a/odb/qt/date-time/sqlite/qtime-traits.hxx b/odb/qt/date-time/sqlite/qtime-traits.hxx index 84721ee..cf139b0 100644 --- a/odb/qt/date-time/sqlite/qtime-traits.hxx +++ b/odb/qt/date-time/sqlite/qtime-traits.hxx @@ -22,7 +22,7 @@ namespace odb namespace sqlite { template <> - class default_value_traits + class default_value_traits { public: typedef QTime value_type; @@ -74,7 +74,7 @@ namespace odb // integer value represents seconds since midnight. // template <> - class default_value_traits + class default_value_traits { public: typedef QTime value_type; -- cgit v1.1