mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-21 00:21:25 +00:00
Fix shadowing
This commit is contained in:
parent
c66f862a39
commit
6182069c0c
@ -336,12 +336,21 @@ struct hash<BASE_SET>
|
||||
{
|
||||
size_t operator()( const BASE_SET& bs ) const
|
||||
{
|
||||
<<<<<<< HEAD
|
||||
size_t hashVal = 0;
|
||||
|
||||
for( const auto& bit : bs )
|
||||
hashVal = hashVal * 31 + std::hash<int>()( bit );
|
||||
|
||||
return hashVal;
|
||||
=======
|
||||
size_t hash_val = 0;
|
||||
|
||||
for( const auto& bit : bs )
|
||||
hash_val = hash_val * 31 + std::hash<int>()( bit );
|
||||
|
||||
return hash_val;
|
||||
>>>>>>> 7080b9e5f7 (Fix shadowing)
|
||||
}
|
||||
};
|
||||
} // namespace std
|
||||
|
Loading…
Reference in New Issue
Block a user