[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[certi-cvs] certi/RTIG Federation.cc
From: |
certi-cvs |
Subject: |
[certi-cvs] certi/RTIG Federation.cc |
Date: |
Tue, 19 May 2009 09:52:07 +0000 |
CVSROOT: /sources/certi
Module name: certi
Changes by: Petr Gotthard <gotthardp> 09/05/19 09:52:07
Modified files:
RTIG : Federation.cc
Log message:
Use constructor instead of resize.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/RTIG/Federation.cc?cvsroot=certi&r1=3.106&r2=3.107
Patches:
Index: Federation.cc
===================================================================
RCS file: /sources/certi/certi/RTIG/Federation.cc,v
retrieving revision 3.106
retrieving revision 3.107
diff -u -b -r3.106 -r3.107
--- Federation.cc 19 May 2009 09:39:26 -0000 3.106
+++ Federation.cc 19 May 2009 09:52:06 -0000 3.107
@@ -18,7 +18,7 @@
// along with this program ; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// $Id: Federation.cc,v 3.106 2009/05/19 09:39:26 gotthardp Exp $
+// $Id: Federation.cc,v 3.107 2009/05/19 09:52:06 gotthardp Exp $
// ----------------------------------------------------------------------------
#include <config.h>
@@ -1845,9 +1845,7 @@
}
// broadcastSomeMessage needs a vector, no set -> conversion
- vector<FederateHandle> federate_vector;
- // federate_vector = federate_set
- federate_vector.resize(federate_set.size());
+ vector<FederateHandle> federate_vector(federate_set.size());
std::copy(federate_set.begin(), federate_set.end(),
federate_vector.begin());
NM_Start_Registration_For_Object_Class msg ;
@@ -2574,5 +2572,5 @@
}} // namespace certi/rtig
-// $Id: Federation.cc,v 3.106 2009/05/19 09:39:26 gotthardp Exp $
+// $Id: Federation.cc,v 3.107 2009/05/19 09:52:06 gotthardp Exp $