diff options
Diffstat (limited to 'odb/qt/containers/qset-traits.hxx')
-rw-r--r-- | odb/qt/containers/qset-traits.hxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/odb/qt/containers/qset-traits.hxx b/odb/qt/containers/qset-traits.hxx index 1d99321..f83ad4d 100644 --- a/odb/qt/containers/qset-traits.hxx +++ b/odb/qt/containers/qset-traits.hxx @@ -18,6 +18,7 @@ namespace odb { public: static const container_kind kind = ck_set; + static const bool smart = false; typedef QSet<T> container_type; typedef T value_type; @@ -30,7 +31,7 @@ namespace odb { for (typename container_type::const_iterator i (c.begin ()), e (c.end ()); i != e; ++i) - f.insert_one (*i); + f.insert (*i); } static void @@ -41,7 +42,7 @@ namespace odb while (more) { value_type v; - more = f.load_all (v); + more = f.select (v); c.insert (v); //@@ Use std::move in C++11. } } @@ -49,17 +50,17 @@ namespace odb static void update (const container_type& c, const functions& f) { - f.delete_all (); + f.delete_ (); for (typename container_type::const_iterator i (c.begin ()), e (c.end ()); i != e; ++i) - f.insert_one (*i); + f.insert (*i); } static void erase (const functions& f) { - f.delete_all (); + f.delete_ (); } }; } |