Format all C++ and Java code via clang-format

Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
Konstantin Pastbin
2025-08-17 14:32:37 +07:00
parent 9f0290c0ec
commit bfffa1fff4
2169 changed files with 56441 additions and 64188 deletions

View File

@@ -12,16 +12,15 @@
namespace dp
{
template<typename T, typename Factory>
template <typename T, typename Factory>
class ObjectPool final
{
public:
ObjectPool(int count, Factory const & f)
: m_factory(f)
ObjectPool(int count, Factory const & f) : m_factory(f)
{
for (int i = 0; i < count; ++i)
{
T *novice = m_factory.GetNew();
T * novice = m_factory.GetNew();
#if defined(DEBUG) || defined(LOG_OBJECT_POOL)
m_checkerSet.insert(novice);
#endif
@@ -86,4 +85,3 @@ private:
std::mutex m_lock;
};
} // namespace dp