From: Michael Wetherell Date: Fri, 10 Nov 2006 16:00:44 +0000 (+0000) Subject: Make the function passed to wxStringToIntType a template parameter instead of X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b2c31089c2bd10eb5a33f4d43654e85b7ca451f0 Make the function passed to wxStringToIntType a template parameter instead of assuming its type. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43278 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/string.cpp b/src/common/string.cpp index 8a722a4f4c..7d77c76f8f 100644 --- a/src/common/string.cpp +++ b/src/common/string.cpp @@ -1682,17 +1682,11 @@ int wxString::Find(const wxChar *pszSub) const // the implementation of all the functions below is exactly the same so factor // it out -#ifdef __WATCOMC__ - #define STR2INTLINK _WCRTLINK -#else - #define STR2INTLINK -#endif - -template +template bool wxStringToIntType(const wxChar *start, T *val, int base, - T STR2INTLINK (*func)(const wxChar *, wxChar **, int)) + F func) { wxCHECK_MSG( val, false, _T("NULL output pointer") ); wxASSERT_MSG( !base || (base > 1 && base <= 36), _T("invalid base") );