diff options
Diffstat (limited to 'odb/qt/containers/qvector-traits.hxx')
-rw-r--r-- | odb/qt/containers/qvector-traits.hxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/odb/qt/containers/qvector-traits.hxx b/odb/qt/containers/qvector-traits.hxx index c3dfb5b..79b9d4b 100644 --- a/odb/qt/containers/qvector-traits.hxx +++ b/odb/qt/containers/qvector-traits.hxx @@ -18,6 +18,7 @@ namespace odb { public: static const container_kind kind = ck_ordered; + static const bool smart = false; typedef QVector<T> container_type; @@ -34,7 +35,7 @@ namespace odb // QVector. // for (index_type i (0), n (c.size ()); i < n; ++i) - f.insert_one (i, c[i]); + f.insert (i, c[i]); } static void @@ -46,23 +47,23 @@ namespace odb { index_type dummy; c.append (value_type ()); - more = f.load_all (dummy, c.back ()); + more = f.select (dummy, c.back ()); } } static void update (const container_type& c, const functions& f) { - f.delete_all (); + f.delete_ (); for (index_type i (0), n (c.size ()); i < n; ++i) - f.insert_one (i, c[i]); + f.insert (i, c[i]); } static void erase (const functions& f) { - f.delete_all (); + f.delete_ (); } }; } |