From 0533fe8d1a3d14c36be5349bd5ed630727d899c7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 29 Feb 2012 17:50:01 +0200 Subject: Use move instead of copy in container traits if C++11 is available --- odb/qt/containers/qhash-traits.hxx | 4 ++-- odb/qt/containers/qmap-traits.hxx | 4 ++-- odb/qt/containers/qset-traits.hxx | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/odb/qt/containers/qhash-traits.hxx b/odb/qt/containers/qhash-traits.hxx index 6081722..57b072e 100644 --- a/odb/qt/containers/qhash-traits.hxx +++ b/odb/qt/containers/qhash-traits.hxx @@ -45,7 +45,7 @@ namespace odb key_type k; value_type v; more = f.load_all (k, v); - c.insert (k, v); + c.insert (k, v); // @@ Use std::move in C++11. } } @@ -101,7 +101,7 @@ namespace odb key_type k; value_type v; more = f.load_all (k, v); - c.insert (k, v); + c.insert (k, v); //@@ Use std::move in C++11. } } diff --git a/odb/qt/containers/qmap-traits.hxx b/odb/qt/containers/qmap-traits.hxx index b9aed9d..e9c422c 100644 --- a/odb/qt/containers/qmap-traits.hxx +++ b/odb/qt/containers/qmap-traits.hxx @@ -46,7 +46,7 @@ namespace odb key_type k; value_type v; more = f.load_all (k, v); - c.insert (k, v); + c.insert (k, v); //@@ Use std::move in C++11. } } @@ -102,7 +102,7 @@ namespace odb key_type k; value_type v; more = f.load_all (k, v); - c.insert (k, v); + c.insert (k, v); //@@ Use std::move in C++11. } } diff --git a/odb/qt/containers/qset-traits.hxx b/odb/qt/containers/qset-traits.hxx index cd17537..1d99321 100644 --- a/odb/qt/containers/qset-traits.hxx +++ b/odb/qt/containers/qset-traits.hxx @@ -42,7 +42,7 @@ namespace odb { value_type v; more = f.load_all (v); - c.insert (v); + c.insert (v); //@@ Use std::move in C++11. } } -- cgit v1.1