aboutsummaryrefslogtreecommitdiff
path: root/odb
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-02-29 17:50:01 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-02-29 17:50:01 +0200
commit0533fe8d1a3d14c36be5349bd5ed630727d899c7 (patch)
treee810cd8e8703d76c33e8a85702e2d87dc8beb412 /odb
parent35a98e771162c0801bc85fc9d12152a23d0216e4 (diff)
Use move instead of copy in container traits if C++11 is available
Diffstat (limited to 'odb')
-rw-r--r--odb/qt/containers/qhash-traits.hxx4
-rw-r--r--odb/qt/containers/qmap-traits.hxx4
-rw-r--r--odb/qt/containers/qset-traits.hxx2
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.
}
}