[Rprotobuf-commits] r525 - pkg/src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Sep 4 01:03:16 CEST 2013


Author: murray
Date: 2013-09-04 01:03:15 +0200 (Wed, 04 Sep 2013)
New Revision: 525

Modified:
   pkg/src/mutators.cpp
Log:
Pass string by reference.  Caught by Karl in code review.



Modified: pkg/src/mutators.cpp
===================================================================
--- pkg/src/mutators.cpp	2013-08-31 01:29:28 UTC (rev 524)
+++ pkg/src/mutators.cpp	2013-09-03 23:03:15 UTC (rev 525)
@@ -100,7 +100,7 @@
 }
 
 template<typename ValueType>
-ValueType Int64FromString(const string value) {
+ValueType Int64FromString(const string &value) {
     std::stringstream ss(value);
     ValueType ret;
     if ((ss >> ret).fail() || !(ss>>std::ws).eof()) {



More information about the Rprotobuf-commits mailing list