- Timestamp:
- Jan 10, 2016, 1:54:11 PM (9 years ago)
- Location:
- code/branches/cpp11_v3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v3
- Property svn:mergeinfo changed
-
code/branches/cpp11_v3/src/libraries/network/FunctionCall.cc
r10624 r11054 48 48 bool FunctionCall::execute(){ 49 49 NetworkFunctionBase* fct = NetworkFunctionManager::getInstance().getFunctionByNetworkId( this->functionID_ ); 50 assert( fct != NULL);50 assert( fct != nullptr ); 51 51 assert( this->nrOfArguments_==this->arguments_.size() ); 52 52 switch(this->nrOfArguments_) … … 119 119 for( unsigned int i=0; i<this->nrOfArguments_; ++i ) 120 120 { 121 this->arguments_. push_back(MultiType());121 this->arguments_.emplace_back(); 122 122 this->arguments_.back().importData(mem); 123 123 } … … 131 131 *(uint32_t*)(mem+2*sizeof(uint32_t)) = this->objectID_; 132 132 mem += 3*sizeof(uint32_t); 133 for( std::vector<MultiType>::iterator it = this->arguments_.begin(); it!=this->arguments_.end(); ++it)133 for(const MultiType& argument : this->arguments_) 134 134 { 135 it->exportData( mem );135 argument.exportData( mem ); 136 136 } 137 137 }
Note: See TracChangeset
for help on using the changeset viewer.