From: robertc <> Date: Sun, 10 Aug 2003 07:01:22 +0000 (+0000) Subject: detemplatize splay comparisons for MSVC X-Git-Tag: SQUID_3_0_PRE3~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=079b4b63668ec0a6f49c4c4b07e839a8dfcf36cd;p=thirdparty%2Fsquid.git detemplatize splay comparisons for MSVC --- diff --git a/src/ACLStringData.cc b/src/ACLStringData.cc index 44feee6281..99ad86b27a 100644 --- a/src/ACLStringData.cc +++ b/src/ACLStringData.cc @@ -1,5 +1,5 @@ /* - * $Id: ACLStringData.cc,v 1.3 2003/08/04 22:14:40 robertc Exp $ + * $Id: ACLStringData.cc,v 1.4 2003/08/10 01:01:22 robertc Exp $ * * DEBUG: section 28 Access Control * AUTHOR: Duane Wessels @@ -78,11 +78,10 @@ ACLStringData::~ACLStringData() values->destroy(xRefFree); } -template -inline int -splaystrcmp (T&l, T&r) +static int +splaystrcmp (char * const &l, char * const &r) { - return strcmp ((char *)l,(char *)r); + return strcmp (l,r); } bool diff --git a/src/ACLUserData.cc b/src/ACLUserData.cc index c380c4966a..1cac6a805b 100644 --- a/src/ACLUserData.cc +++ b/src/ACLUserData.cc @@ -71,16 +71,14 @@ ACLUserData::~ACLUserData() names->destroy(xRefFree); } -template -inline int -splaystrcasecmp (T&l, T&r) +static int +splaystrcasecmp (char * const &l, char * const &r) { return strcasecmp ((char *)l,(char *)r); } -template -inline int -splaystrcmp (T&l, T&r) +static int +splaystrcmp (char * const &l, char * const &r) { return strcmp ((char *)l,(char *)r); }