| OLD | NEW |
| 1 /* | 1 /* |
| 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) | 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) |
| 3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org> | 3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org> |
| 4 Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. | 4 Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. |
| 5 | 5 |
| 6 This library is free software; you can redistribute it and/or | 6 This library is free software; you can redistribute it and/or |
| 7 modify it under the terms of the GNU Library General Public | 7 modify it under the terms of the GNU Library General Public |
| 8 License as published by the Free Software Foundation; either | 8 License as published by the Free Software Foundation; either |
| 9 version 2 of the License, or (at your option) any later version. | 9 version 2 of the License, or (at your option) any later version. |
| 10 | 10 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 for (const auto& resourceClient : set) | 44 for (const auto& resourceClient : set) |
| 45 m_clientVector[clientIndex++] = resourceClient.key; | 45 m_clientVector[clientIndex++] = resourceClient.key; |
| 46 } | 46 } |
| 47 | 47 |
| 48 T* next() | 48 T* next() |
| 49 { | 49 { |
| 50 size_t size = m_clientVector.size(); | 50 size_t size = m_clientVector.size(); |
| 51 while (m_index < size) { | 51 while (m_index < size) { |
| 52 ResourceClient* next = m_clientVector[m_index++]; | 52 ResourceClient* next = m_clientVector[m_index++]; |
| 53 if (m_clientSet.contains(next)) { | 53 if (m_clientSet.contains(next)) { |
| 54 ASSERT(T::expectedType() == ResourceClient::expectedType() || ne
xt->resourceClientType() == T::expectedType()); | 54 ASSERT(T::expectedType() == ResourceClient::expectedType() || ne
xt->getResourceClientType() == T::expectedType()); |
| 55 return static_cast<T*>(next); | 55 return static_cast<T*>(next); |
| 56 } | 56 } |
| 57 } | 57 } |
| 58 | 58 |
| 59 return 0; | 59 return 0; |
| 60 } | 60 } |
| 61 private: | 61 private: |
| 62 const HashCountedSet<ResourceClient*>& m_clientSet; | 62 const HashCountedSet<ResourceClient*>& m_clientSet; |
| 63 Vector<ResourceClient*> m_clientVector; | 63 Vector<ResourceClient*> m_clientVector; |
| 64 size_t m_index; | 64 size_t m_index; |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 } // namespace blink | 67 } // namespace blink |
| 68 | 68 |
| 69 #endif | 69 #endif |
| OLD | NEW |