Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r83327 - in sandbox/icl/libs/xplore/value_sem/TreeSync1/TreeSync1: . Syncable
From: afojgo_at_[hidden]
Date: 2013-03-05 18:52:09


Author: jofaber
Date: 2013-03-05 18:52:09 EST (Tue, 05 Mar 2013)
New Revision: 83327
URL: http://svn.boost.org/trac/boost/changeset/83327

Log:
Some more move optimizations.
Text files modified:
   sandbox/icl/libs/xplore/value_sem/TreeSync1/TreeSync1/Syncable/Node.h | 5 +++--
   sandbox/icl/libs/xplore/value_sem/TreeSync1/TreeSync1/TreeSync1.cpp | 3 +--
   2 files changed, 4 insertions(+), 4 deletions(-)

Modified: sandbox/icl/libs/xplore/value_sem/TreeSync1/TreeSync1/Syncable/Node.h
==============================================================================
--- sandbox/icl/libs/xplore/value_sem/TreeSync1/TreeSync1/Syncable/Node.h (original)
+++ sandbox/icl/libs/xplore/value_sem/TreeSync1/TreeSync1/Syncable/Node.h 2013-03-05 18:52:09 EST (Tue, 05 Mar 2013)
@@ -22,9 +22,10 @@
   typedef typename NodeVec::iterator node_iterator;
 
   Node( Uuid const& uuid = 0, std::string const& name = std::string()
- , const ContentVec& content = ContentVec(), const NodeVec& children = NodeVec())
+ , ContentVec content = ContentVec(), NodeVec children = NodeVec())
     : m_uuid(uuid), m_name(name)
- , m_content(content), m_children(children)
+ , m_content(std::move(content))
+ , m_children(std::move(children))
   {
     m_time = std::max(m_content.time(), m_children.time());
   }

Modified: sandbox/icl/libs/xplore/value_sem/TreeSync1/TreeSync1/TreeSync1.cpp
==============================================================================
--- sandbox/icl/libs/xplore/value_sem/TreeSync1/TreeSync1/TreeSync1.cpp (original)
+++ sandbox/icl/libs/xplore/value_sem/TreeSync1/TreeSync1/TreeSync1.cpp 2013-03-05 18:52:09 EST (Tue, 05 Mar 2013)
@@ -32,12 +32,11 @@
   Playlists content1 = content_1(4, " pls_1 ");
   NodeList children1 = children_0(5, 6, "children_1", content1);
 
-/*
   Playlists content2 = content_2(9, " pls_2 ");
   NodeList children2 = children_0(10, 6, "children_2", content1);
 
   Node<Playlist> node1 = Node<Playlist>(8, " node_1 ", content1, children1);
-
+/*
   Node<Playlist> node2 = Node<Playlist>(11, " node_2 ", content2, children2);
 
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk