Pre-increment (rather than post-increment) STL iterators in for loops… (#1692)

* Pre-increment (rather than post-increment) STL iterators in for loops. #1594

* Fix a goof. #1594
This commit is contained in:
jmpenn
2024-04-18 11:41:35 -05:00
committed by GitHub
parent e515144252
commit 5065d96a15
51 changed files with 118 additions and 118 deletions

View File

@ -264,7 +264,7 @@ int Trick::JITInputFile::add_library(std::string lib_name) {
void * Trick::JITInputFile::find_symbol(std::string sym) {
std::map< std::string , JITLibInfo >::iterator it ;
for ( it = file_to_libinfo_map.begin() ; it != file_to_libinfo_map.end() ; it++ ) {
for ( it = file_to_libinfo_map.begin() ; it != file_to_libinfo_map.end() ; ++it ) {
void * ret = (*it).second.find_symbol(sym) ;
if (ret != NULL) {
return ret ;