1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:37:35 +00:00

AK: Cleanup missing includes and #ifdef evaluation

Problem:
- Several files have missing includes. This results in complaints from
  `clang-tidy`.
- `#ifdef` is followed by `#elif <value>` which evaluates to `0`.

Solution:
- Add missing includes.
- Change to `#elif defined(<value>)`.
This commit is contained in:
Lenny Maiorani 2020-11-21 18:02:56 -07:00 committed by Andreas Kling
parent bbc0487ced
commit 7d8a9bdb1e
5 changed files with 10 additions and 3 deletions

View file

@ -96,12 +96,12 @@ public:
return List::contains_slow(value);
}
using Iterator = List::Iterator;
using Iterator = typename List::Iterator;
friend Iterator;
Iterator begin() { return List::begin(); }
Iterator end() { return List::end(); }
using ConstIterator = List::ConstIterator;
using ConstIterator = typename List::ConstIterator;
friend ConstIterator;
ConstIterator begin() const { return List::begin(); }
ConstIterator end() const { return List::end(); }