]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Summary: Remove use of FreeObject template function for MSVC compatability.
authorrobertc <>
Sun, 10 Aug 2003 13:43:42 +0000 (13:43 +0000)
committerrobertc <>
Sun, 10 Aug 2003 13:43:42 +0000 (13:43 +0000)
Keywords:

Remove use of FreeObject template function for MSVC compatability.

src/fs/coss/store_dir_coss.cc
src/fs/ufs/store_dir_ufs.cc

index 3a5bbc8f9cfa6c391cca8daab4995397a4d8f87b..c5109a5b8517550c5deb62806c4392be5c064870 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_dir_coss.cc,v 1.46 2003/07/22 15:23:10 robertc Exp $
+ * $Id: store_dir_coss.cc,v 1.47 2003/08/10 07:43:42 robertc Exp $
  *
  * DEBUG: section 47    Store COSS Directory Routines
  * AUTHOR: Eric Stern
@@ -698,6 +698,13 @@ CossSwapDir::writeCleanDone()
     cleanLog = NULL;
 }
 
+static void
+FreeObject(void *address)
+{
+    StoreSwapLogData *anObject = static_cast <StoreSwapLogData *>(address);
+    delete anObject;
+}
+
 void
 CossSwapDir::logEntry(const StoreEntry & e, int op) const
 {
@@ -718,7 +725,7 @@ CossSwapDir::logEntry(const StoreEntry & e, int op) const
                sizeof(StoreSwapLogData),
                NULL,
                NULL,
-               &FreeObject<StoreSwapLogData>);
+               &FreeObject);
 }
 
 void
index 4e109ed281d8786fd5b2f5777558320d66e856e2..3a215b4d64d873794ad160a3f8fa305cb2c9b075 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_dir_ufs.cc,v 1.62 2003/08/04 22:14:53 robertc Exp $
+ * $Id: store_dir_ufs.cc,v 1.63 2003/08/10 07:43:42 robertc Exp $
  *
  * DEBUG: section 47    Store Directory Routines
  * AUTHOR: Duane Wessels
@@ -996,6 +996,13 @@ UFSSwapDir::writeCleanDone()
     cleanLog = NULL;
 }
 
+static void
+FreeObject(void *address)
+{
+    StoreSwapLogData *anObject = static_cast <StoreSwapLogData *>(address);
+    delete anObject;
+}
+
 void
 UFSSwapDir::logEntry(const StoreEntry & e, int op) const
 {
@@ -1016,7 +1023,7 @@ UFSSwapDir::logEntry(const StoreEntry & e, int op) const
                sizeof(StoreSwapLogData),
                NULL,
                NULL,
-               FreeObject<StoreSwapLogData>);
+               FreeObject);
 }
 
 static QS rev_int_sort;