diff options
author | skidd13 <skidd13@openttd.org> | 2008-06-22 15:21:51 +0000 |
---|---|---|
committer | skidd13 <skidd13@openttd.org> | 2008-06-22 15:21:51 +0000 |
commit | 8b7d893d85d2493548c023000fca99b1ce16b5f2 (patch) | |
tree | 8904cbdb49b1373360cba22af59cfdea4811c6de /src/core/sort_func.hpp | |
parent | ccd27d1e5ba03bb8b9d6e487e158358d22d26b3b (diff) | |
download | openttd-8b7d893d85d2493548c023000fca99b1ce16b5f2.tar.xz |
(svn r13606) -Codechange: use "static FORCEINLINE" where possible as default for core functions (big functions use just inline instead)
Diffstat (limited to 'src/core/sort_func.hpp')
-rw-r--r-- | src/core/sort_func.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/sort_func.hpp b/src/core/sort_func.hpp index 826fa278d..0ccd92a73 100644 --- a/src/core/sort_func.hpp +++ b/src/core/sort_func.hpp @@ -20,8 +20,8 @@ * @param comparator Function that compares two elements. * @param desc Sort descending. */ -template<typename T> -FORCEINLINE void QSortT(T *base, uint num, int (CDECL *comparator)(const T*, const T*), bool desc = false) +template <typename T> +static FORCEINLINE void QSortT(T *base, uint num, int (CDECL *comparator)(const T*, const T*), bool desc = false) { if (num < 2) return; @@ -44,8 +44,8 @@ FORCEINLINE void QSortT(T *base, uint num, int (CDECL *comparator)(const T*, con * @param comparator Function that compares two elements. * @param desc Sort descending. */ -template<typename T> -FORCEINLINE void GSortT(T *base, uint num, int (CDECL *comparator)(const T*, const T*), bool desc = false) +template <typename T> +static inline void GSortT(T *base, uint num, int (CDECL *comparator)(const T*, const T*), bool desc = false) { if (num < 2) return; |