Chromium Code Reviews| Index: core/fxcrt/fx_basic_maps.cpp |
| diff --git a/core/fxcrt/fx_basic_maps.cpp b/core/fxcrt/fx_basic_maps.cpp |
| index dda8167bdba572721f0ef4ddd28e9cc168fef61c..40f4cf62c6be2148c3e440291b0bb4ed4fec47ed 100644 |
| --- a/core/fxcrt/fx_basic_maps.cpp |
| +++ b/core/fxcrt/fx_basic_maps.cpp |
| @@ -77,10 +77,9 @@ void* CFX_MapPtrToPtr::GetValueAt(void* key) const { |
| void*& CFX_MapPtrToPtr::operator[](void* key) { |
| uint32_t nHash; |
| CAssoc* pAssoc; |
| - if ((pAssoc = GetAssocAt(key, nHash)) == NULL) { |
| - if (!m_pHashTable) { |
| + if (!(pAssoc = GetAssocAt(key, nHash))) { |
|
Tom Sepez
2016/06/02 20:09:48
nit: move assign to previous line.
Lei Zhang
2016/06/07 07:33:23
I did in a later CL.
|
| + if (!m_pHashTable) |
| InitHashTable(m_nHashTableSize); |
| - } |
| pAssoc = NewAssoc(); |
| pAssoc->key = key; |
| pAssoc->pNext = m_pHashTable[nHash]; |