Skip to content

Commit 11e096e

Browse files
committed
convert two more references
1 parent 813eeba commit 11e096e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/RevOpts.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ bool RevOpts::InitStartAddrs( const std::vector<std::string>& StartAddrs ) {
9292
}
9393

9494
for( size_t i = 0; i < StartAddrs.size(); i++ ) {
95-
std::string s = StartAddrs[i];
95+
const std::string& s = StartAddrs[i];
9696
splitStr( s, ":", vstr );
9797
if( vstr.size() != 2 )
9898
return false;
@@ -149,7 +149,7 @@ bool RevOpts::InitMachineModels( const std::vector<std::string>& Machines ) {
149149

150150
// parse individual core configs
151151
for( size_t i = 0; i < Machines.size(); i++ ) {
152-
std::string s = Machines[i];
152+
const std::string& s = Machines[i];
153153
splitStr( s, ":", vstr );
154154
if( vstr.size() != 2 )
155155
return false;

0 commit comments

Comments
 (0)