mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 05:06:24 +00:00
chore(Apps/Codestyle): add new codestyle checks for pointers and range loops (#19841)
* chore(Apps/Codestyle): add new codestyle checks for pointers and range loops * revert a typo
This commit is contained in:
@@ -464,14 +464,14 @@ public:
|
||||
_storage.shrink_to_fit();
|
||||
}
|
||||
|
||||
void append(const char *src, std::size_t cnt)
|
||||
void append(char const* src, std::size_t cnt)
|
||||
{
|
||||
return append((const uint8 *)src, cnt);
|
||||
return append((uint8 const*)src, cnt);
|
||||
}
|
||||
|
||||
template<class T> void append(const T* src, std::size_t cnt)
|
||||
{
|
||||
return append((const uint8*)src, cnt * sizeof(T));
|
||||
return append((uint8 const*)src, cnt * sizeof(T));
|
||||
}
|
||||
|
||||
void append(uint8 const* src, std::size_t cnt);
|
||||
@@ -522,7 +522,7 @@ public:
|
||||
}
|
||||
|
||||
void AppendPackedTime(time_t time);
|
||||
void put(std::size_t pos, const uint8 *src, std::size_t cnt);
|
||||
void put(std::size_t pos, uint8 const* src, std::size_t cnt);
|
||||
void print_storage() const;
|
||||
void textlike() const;
|
||||
void hexlike() const;
|
||||
|
||||
Reference in New Issue
Block a user