diff --git a/example/snippets/regex_grep_example_3.cpp b/example/snippets/regex_grep_example_3.cpp index 2712be0b..11fc36e9 100644 --- a/example/snippets/regex_grep_example_3.cpp +++ b/example/snippets/regex_grep_example_3.cpp @@ -122,12 +122,12 @@ int main(int argc, const char** argv) cout << "Processing file " << argv[i] << endl; std::ifstream fs(argv[i]); load_file(text, fs); - class_index i; - i.IndexClasses(text); - cout << i.get_map().size() << " matches found" << endl; + class_index idx; + idx.IndexClasses(text); + cout << idx.get_map().size() << " matches found" << endl; map_type::iterator c, d; - c = i.get_map().begin(); - d = i.get_map().end(); + c = idx.get_map().begin(); + d = idx.get_map().end(); while(c != d) { cout << "class \"" << (*c).first << "\" found at index: " << (*c).second << endl;