GH #1050 Foundation-tests: fix gcc -Wshadow warnings

This commit is contained in:
Miklos Vajna
2016-04-01 11:36:39 +02:00
parent fb23653f88
commit 2b6eb3fd76
21 changed files with 184 additions and 184 deletions

View File

@@ -58,7 +58,7 @@ public:
typedef std::vector<HashEntry*> HashTableVector;
SimpleHashTable(UInt32 capacity = 251): _entries(capacity, 0), _size(0), _capacity(capacity)
SimpleHashTable(UInt32 tableCapacity = 251): _entries(tableCapacity, 0), _size(0), _capacity(tableCapacity)
/// Creates the SimpleHashTable.
{
}
@@ -366,11 +366,11 @@ public:
if (_entries[i])
{
maxEntriesPerHash = 1;
UInt32 size = 1;
UInt32 entrySize = 1;
if (details)
detailedEntriesPerHash.push_back(size);
detailedEntriesPerHash.push_back(entrySize);
#ifdef _DEBUG
totalSize += size;
totalSize += entrySize;
#endif
}
else