File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -512,13 +512,12 @@ class java_generic_symbol_typet : public symbol_typet
512
512
// / in the vector of generic types.
513
513
// / \param type The type we are looking for.
514
514
// / \return The index of the type in the vector of generic types.
515
- optionalt<size_t > generic_type (const reference_typet &type) const
515
+ optionalt<size_t > generic_type_index (const reference_typet &type) const
516
516
{
517
- const size_t &index =
518
- std::find (generic_types ().begin (), generic_types ().end (), type) -
519
- generic_types ().begin ();
520
- if (index < generic_types ().size ())
521
- return index;
517
+ const auto &type_pointer =
518
+ std::find (generic_types ().begin (), generic_types ().end (), type);
519
+ if (type_pointer != generic_types ().end ())
520
+ return type_pointer - generic_types ().begin ();
522
521
return {};
523
522
}
524
523
};
Original file line number Diff line number Diff line change @@ -410,7 +410,7 @@ class class_typet:public struct_typet
410
410
{
411
411
for (const auto &b : bases ())
412
412
{
413
- if (to_symbol_type (b.type ()).get (ID_identifier ) == id)
413
+ if (to_symbol_type (b.type ()).get_identifier ( ) == id)
414
414
return b;
415
415
}
416
416
}
You can’t perform that action at this time.
0 commit comments