[Rcpp-commits] r943 - in pkg/Rcpp/src/Rcpp: . internal

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Fri Mar 26 06:13:57 CET 2010


Author: romain
Date: 2010-03-26 06:13:57 +0100 (Fri, 26 Mar 2010)
New Revision: 943

Modified:
   pkg/Rcpp/src/Rcpp/Vector.h
   pkg/Rcpp/src/Rcpp/internal/Proxy_Iterator.h
Log:
couple pedantic findings

Modified: pkg/Rcpp/src/Rcpp/Vector.h
===================================================================
--- pkg/Rcpp/src/Rcpp/Vector.h	2010-03-26 05:05:34 UTC (rev 942)
+++ pkg/Rcpp/src/Rcpp/Vector.h	2010-03-26 05:13:57 UTC (rev 943)
@@ -2110,7 +2110,7 @@
 	iterator insert__impl( iterator position, const stored_type& object){
 		int n = size() ;
 		iterator start = begin() ;
-		int pos = position - start ;
+		// int pos = position - start ;
 		Vector target( n+1 ) ;
 		iterator target_it = target.begin();
 		iterator it = begin() ;

Modified: pkg/Rcpp/src/Rcpp/internal/Proxy_Iterator.h
===================================================================
--- pkg/Rcpp/src/Rcpp/internal/Proxy_Iterator.h	2010-03-26 05:05:34 UTC (rev 942)
+++ pkg/Rcpp/src/Rcpp/internal/Proxy_Iterator.h	2010-03-26 05:13:57 UTC (rev 943)
@@ -41,6 +41,7 @@
 		
 		Proxy_Iterator& operator=( const Proxy_Iterator& other ){
 			proxy.import( other.proxy ) ;
+			return *this ;
 		}
 		
 		inline Proxy_Iterator& operator++(){



More information about the Rcpp-commits mailing list