mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 13:23:59 +00:00
Format all C++ and Java code via clang-format
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user