We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 813eeba commit 11e096eCopy full SHA for 11e096e
src/RevOpts.cc
@@ -92,7 +92,7 @@ bool RevOpts::InitStartAddrs( const std::vector<std::string>& StartAddrs ) {
92
}
93
94
for( size_t i = 0; i < StartAddrs.size(); i++ ) {
95
- std::string s = StartAddrs[i];
+ const std::string& s = StartAddrs[i];
96
splitStr( s, ":", vstr );
97
if( vstr.size() != 2 )
98
return false;
@@ -149,7 +149,7 @@ bool RevOpts::InitMachineModels( const std::vector<std::string>& Machines ) {
149
150
// parse individual core configs
151
for( size_t i = 0; i < Machines.size(); i++ ) {
152
- std::string s = Machines[i];
+ const std::string& s = Machines[i];
153
154
155
0 commit comments