[Rcpp-commits] r491 - pkg/src/Rcpp

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Jan 27 23:11:40 CET 2010


Author: romain
Date: 2010-01-27 23:11:40 +0100 (Wed, 27 Jan 2010)
New Revision: 491

Modified:
   pkg/src/Rcpp/CharacterVector.h
Log:
minor refining of assign

Modified: pkg/src/Rcpp/CharacterVector.h
===================================================================
--- pkg/src/Rcpp/CharacterVector.h	2010-01-27 22:09:35 UTC (rev 490)
+++ pkg/src/Rcpp/CharacterVector.h	2010-01-27 22:11:40 UTC (rev 491)
@@ -93,7 +93,7 @@
 		}
 		std::string y ;
 		for( size_t i=0; i<size; i++, ++first){
-			y = *first ;
+			y.assign( *first ) ;
 			SET_STRING_ELT( x, i, Rf_mkChar(y.c_str())) ;
 		}
 		if( update ) setSEXP(x) ;



More information about the Rcpp-commits mailing list