Convert SerialStorage::Iterator over to being explicit.
This CL adds the attribute and fixes up the call sites to work with the constructors being explicit. Bug: dawn:1339 Change-Id: Ic584477c064411e42143dfc6179bbddb0d6a69c4 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/86871 Reviewed-by: Ben Clayton <bclayton@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
This commit is contained in:
parent
fb5a492787
commit
649687497f
|
@ -35,7 +35,7 @@ class SerialStorage {
|
|||
public:
|
||||
class Iterator {
|
||||
public:
|
||||
Iterator(StorageIterator start);
|
||||
explicit Iterator(StorageIterator start);
|
||||
Iterator& operator++();
|
||||
|
||||
bool operator==(const Iterator& other) const;
|
||||
|
@ -52,7 +52,7 @@ class SerialStorage {
|
|||
|
||||
class ConstIterator {
|
||||
public:
|
||||
ConstIterator(ConstStorageIterator start);
|
||||
explicit ConstIterator(ConstStorageIterator start);
|
||||
ConstIterator& operator++();
|
||||
|
||||
bool operator==(const ConstIterator& other) const;
|
||||
|
@ -198,12 +198,12 @@ SerialStorage<Derived>::BeginEnd::BeginEnd(typename SerialStorage<Derived>::Stor
|
|||
|
||||
template <typename Derived>
|
||||
typename SerialStorage<Derived>::Iterator SerialStorage<Derived>::BeginEnd::begin() const {
|
||||
return {mStartIt};
|
||||
return SerialStorage::Iterator(mStartIt);
|
||||
}
|
||||
|
||||
template <typename Derived>
|
||||
typename SerialStorage<Derived>::Iterator SerialStorage<Derived>::BeginEnd::end() const {
|
||||
return {mEndIt};
|
||||
return SerialStorage::Iterator(mEndIt);
|
||||
}
|
||||
|
||||
// SerialStorage::Iterator
|
||||
|
|
Loading…
Reference in New Issue