mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-30 00:53:46 +00:00
refactor(Core): apply clang-tidy modernize-* (#9975)
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
This commit is contained in:
@@ -29,10 +29,10 @@ class LinkedListElement
|
||||
private:
|
||||
friend class LinkedListHead;
|
||||
|
||||
LinkedListElement* iNext;
|
||||
LinkedListElement* iPrev;
|
||||
LinkedListElement* iNext{nullptr};
|
||||
LinkedListElement* iPrev{nullptr};
|
||||
public:
|
||||
LinkedListElement(): iNext(nullptr), iPrev(nullptr) { }
|
||||
LinkedListElement() = default;
|
||||
~LinkedListElement() { delink(); }
|
||||
|
||||
[[nodiscard]] bool hasNext() const { return (iNext && iNext->iNext != nullptr); }
|
||||
|
||||
@@ -150,7 +150,7 @@ public:
|
||||
}
|
||||
|
||||
template<class SPECIFIC_TYPE>
|
||||
std::size_t Size() const
|
||||
[[nodiscard]] std::size_t Size() const
|
||||
{
|
||||
std::size_t size = 0;
|
||||
Acore::Size(_elements, &size, (SPECIFIC_TYPE*)nullptr);
|
||||
@@ -158,7 +158,7 @@ public:
|
||||
}
|
||||
|
||||
ContainerUnorderedMap<OBJECT_TYPES, KEY_TYPE>& GetElements() { return _elements; }
|
||||
ContainerUnorderedMap<OBJECT_TYPES, KEY_TYPE> const& GetElements() const { return _elements; }
|
||||
[[nodiscard]] ContainerUnorderedMap<OBJECT_TYPES, KEY_TYPE> const& GetElements() const { return _elements; }
|
||||
|
||||
private:
|
||||
ContainerUnorderedMap<OBJECT_TYPES, KEY_TYPE> _elements;
|
||||
|
||||
Reference in New Issue
Block a user