@@ -43,16 +43,16 @@ void RevOpts::SetArgs( const SST::Params& params ) {
43
43
std::string args = params.find <std::string>( " args" );
44
44
auto nonspace = args.find_first_not_of ( delim );
45
45
if ( nonspace == args.npos || args[nonspace] != ' [' ) {
46
- RevOpts:: splitStr ( args, delim, Argv );
46
+ splitStr ( args, delim, Argv );
47
47
} else {
48
48
params.find_array ( " args" , Argv );
49
49
}
50
50
}
51
51
52
52
bool RevOpts::InitPrefetchDepth ( const std::vector<std::string>& Depths ) {
53
53
std::vector<std::string> vstr;
54
- for ( unsigned i = 0 ; i < Depths.size (); i++ ) {
55
- std::string s = Depths[i];
54
+ for ( size_t i = 0 ; i < Depths.size (); i++ ) {
55
+ const std::string& s = Depths[i];
56
56
splitStr ( s, " :" , vstr );
57
57
if ( vstr.size () != 2 )
58
58
return false ;
@@ -75,7 +75,7 @@ bool RevOpts::InitStartAddrs( const std::vector<std::string>& StartAddrs ) {
75
75
76
76
// check to see if we expand into multiple cores
77
77
if ( StartAddrs.size () == 1 ) {
78
- std::string s = StartAddrs[0 ];
78
+ const std::string& s = StartAddrs[0 ];
79
79
splitStr ( s, " :" , vstr );
80
80
if ( vstr.size () != 2 )
81
81
return false ;
@@ -91,7 +91,7 @@ bool RevOpts::InitStartAddrs( const std::vector<std::string>& StartAddrs ) {
91
91
}
92
92
}
93
93
94
- for ( unsigned i = 0 ; i < StartAddrs.size (); i++ ) {
94
+ for ( size_t i = 0 ; i < StartAddrs.size (); i++ ) {
95
95
std::string s = StartAddrs[i];
96
96
splitStr ( s, " :" , vstr );
97
97
if ( vstr.size () != 2 )
@@ -112,8 +112,8 @@ bool RevOpts::InitStartAddrs( const std::vector<std::string>& StartAddrs ) {
112
112
113
113
bool RevOpts::InitStartSymbols ( const std::vector<std::string>& StartSymbols ) {
114
114
std::vector<std::string> vstr;
115
- for ( unsigned i = 0 ; i < StartSymbols.size (); i++ ) {
116
- std::string s = StartSymbols[i];
115
+ for ( size_t i = 0 ; i < StartSymbols.size (); i++ ) {
116
+ const std::string& s = StartSymbols[i];
117
117
splitStr ( s, " :" , vstr );
118
118
if ( vstr.size () != 2 )
119
119
return false ;
@@ -133,7 +133,7 @@ bool RevOpts::InitMachineModels( const std::vector<std::string>& Machines ) {
133
133
134
134
// check to see if we expand into multiple cores
135
135
if ( Machines.size () == 1 ) {
136
- std::string s = Machines[0 ];
136
+ const std::string& s = Machines[0 ];
137
137
splitStr ( s, " :" , vstr );
138
138
if ( vstr.size () != 2 )
139
139
return false ;
@@ -148,7 +148,7 @@ bool RevOpts::InitMachineModels( const std::vector<std::string>& Machines ) {
148
148
}
149
149
150
150
// parse individual core configs
151
- for ( unsigned i = 0 ; i < Machines.size (); i++ ) {
151
+ for ( size_t i = 0 ; i < Machines.size (); i++ ) {
152
152
std::string s = Machines[i];
153
153
splitStr ( s, " :" , vstr );
154
154
if ( vstr.size () != 2 )
@@ -166,8 +166,8 @@ bool RevOpts::InitMachineModels( const std::vector<std::string>& Machines ) {
166
166
167
167
bool RevOpts::InitInstTables ( const std::vector<std::string>& InstTables ) {
168
168
std::vector<std::string> vstr;
169
- for ( unsigned i = 0 ; i < InstTables.size (); i++ ) {
170
- std::string s = InstTables[i];
169
+ for ( size_t i = 0 ; i < InstTables.size (); i++ ) {
170
+ const std::string& s = InstTables[i];
171
171
splitStr ( s, " :" , vstr );
172
172
if ( vstr.size () != 2 )
173
173
return false ;
@@ -185,8 +185,8 @@ bool RevOpts::InitInstTables( const std::vector<std::string>& InstTables ) {
185
185
bool RevOpts::InitMemCosts ( const std::vector<std::string>& MemCosts ) {
186
186
std::vector<std::string> vstr;
187
187
188
- for ( unsigned i = 0 ; i < MemCosts.size (); i++ ) {
189
- std::string s = MemCosts[i];
188
+ for ( size_t i = 0 ; i < MemCosts.size (); i++ ) {
189
+ const std::string& s = MemCosts[i];
190
190
splitStr ( s, " :" , vstr );
191
191
if ( vstr.size () != 3 )
192
192
return false ;
0 commit comments