mirror of
git://sourceware.org/git/libabigail.git
synced 2025-02-01 14:21:37 +00:00
Remove useless static_cast from hashing code
* src/abg-ir.h (scope_type_decl_hash::operator()) (qualified_type_def_hash::operator()) (pointer_type_def_hash::operator()) (reference_type_def_hash::operator()): Remove useless static_cast.
This commit is contained in:
parent
946c2628d4
commit
77ade2bde1
14
src/abg-ir.h
14
src/abg-ir.h
@ -366,7 +366,7 @@ struct scope_type_decl_hash
|
||||
|
||||
size_t v = str_hash(typeid(t).name());
|
||||
v = hashing::combine_hashes(v, decl_hash(t));
|
||||
v = hashing::combine_hashes(v, type_hash(static_cast<type_base>(t)));
|
||||
v = hashing::combine_hashes(v, type_hash(t));
|
||||
|
||||
return v;
|
||||
}
|
||||
@ -436,8 +436,8 @@ struct qualified_type_def_hash
|
||||
hash<string> str_hash;
|
||||
|
||||
size_t v = str_hash(typeid(t).name());
|
||||
v = hashing::combine_hashes(v, type_hash(static_cast<type_base>(t)));
|
||||
v = hashing::combine_hashes(v, decl_hash(static_cast<decl_base>(t)));
|
||||
v = hashing::combine_hashes(v, type_hash(t));
|
||||
v = hashing::combine_hashes(v, decl_hash(t));
|
||||
v = hashing::combine_hashes(v, t.get_cv_quals());
|
||||
|
||||
return v;
|
||||
@ -480,8 +480,8 @@ struct pointer_type_def_hash
|
||||
decl_base_hash decl_hash;
|
||||
|
||||
size_t v = str_hash(typeid(t).name());
|
||||
v = hashing::combine_hashes(v, decl_hash(static_cast<decl_base>(t)));
|
||||
v = hashing::combine_hashes(v, type_hash(static_cast<type_base>(t)));
|
||||
v = hashing::combine_hashes(v, decl_hash(t));
|
||||
v = hashing::combine_hashes(v, type_hash(t));
|
||||
return v;
|
||||
}
|
||||
};// end struct pointer_type_def_hash
|
||||
@ -529,8 +529,8 @@ struct reference_type_def_hash
|
||||
v = hashing::combine_hashes(v, str_hash(t.is_lvalue()
|
||||
? "lvalue"
|
||||
: "rvalue"));
|
||||
v = hashing::combine_hashes(v, type_hash(static_cast<type_base>(t)));
|
||||
v = hashing::combine_hashes(v, decl_hash(static_cast<decl_base>(t)));
|
||||
v = hashing::combine_hashes(v, type_hash(t));
|
||||
v = hashing::combine_hashes(v, decl_hash(t));
|
||||
return v;
|
||||
}
|
||||
};//end struct reference_type_def_hash
|
||||
|
Loading…
Reference in New Issue
Block a user