STYLE: use HashTable iterator 'val()' method instead of 'object()'

This commit is contained in:
Mark Olesen
2019-01-18 16:26:50 +01:00
parent 53efb24a8d
commit ed94a2714d
57 changed files with 134 additions and 139 deletions

View File

@ -39,7 +39,7 @@ void printTable(const HashPtrTable<T>& table)
forAllConstIters(table, iter)
{
const T* ptr = iter.object();
const T* ptr = iter.val();
Info<< iter.key() << " = ";
if (ptr)
{

View File

@ -112,7 +112,7 @@ int main()
Info<< "\nerase table2 by iterator" << nl;
forAllIters(table2, iter)
{
Info<< "erasing " << iter.key() << " => " << iter.object() << " ... ";
Info<< "erasing " << iter.key() << " => " << iter.val() << " ... ";
table2.erase(iter);
Info<< "erased" << endl;
}

View File

@ -38,7 +38,7 @@ void printTable(const PtrMap<T>& table)
forAllConstIters(table, iter)
{
const T* ptr = iter.object();
const T* ptr = iter.val();
Info<< iter.key() << " = ";
if (ptr)
{