]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/tests/testMem.cc
Source Format Enforcement (#1234)
[thirdparty/squid.git] / src / tests / testMem.cc
index 32dbe077a7f0f02ae7bf8a703dd5b1eb14e76473..44926c6d8e070014310c921dbbbd5a82a0740c59 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
  *
  * Squid software is distributed under GPLv2+ license and includes
  * contributions from numerous individuals and organizations.
@@ -34,7 +34,7 @@ public:
 void
 testMem::testMemPool()
 {
-    MemAllocator *Pool = memPoolCreate("Test Pool", sizeof(SomethingToAlloc));
+    const auto Pool = memPoolCreate("Test Pool", sizeof(SomethingToAlloc));
     CPPUNIT_ASSERT(Pool);
 
     auto *something = static_cast<SomethingToAlloc *>(Pool->alloc());