[glom] C++11: Replace push_front() with emplace_front().



commit 6105cd88c18f051a4db4f7e289be6f8576a1d71e
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Feb 5 22:30:38 2016 +0100

    C++11: Replace push_front() with emplace_front().

 glom/libglom/utils.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glom/libglom/utils.cc b/glom/libglom/utils.cc
index 107d344..7442d2d 100644
--- a/glom/libglom/utils.cc
+++ b/glom/libglom/utils.cc
@@ -246,7 +246,7 @@ static void add_to_relationships_list(type_list_relationships& list_relationship
   {
     auto uses_rel = std::make_shared<UsesRelationship>();
     uses_rel->set_relationship(layout_item->get_relationship());
-    list_relationships.push_front(uses_rel); //These need to be at the front, so that related relationships 
can use them later in the SQL statement.
+    list_relationships.emplace_front(uses_rel); //These need to be at the front, so that related 
relationships can use them later in the SQL statement.
   }
 
   //Add the relationship to the list:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]