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 | 640e5478862e3b83d85db6332e0d82a45a95e4ed (patch) | |
tree | 8904cbdb49b1373360cba22af59cfdea4811c6de /src/core/sort_func.hpp | |
parent | 31b002dab0cb1bcbc00c9982a72e2cd948f74de5 (diff) | |
download | openttd-640e5478862e3b83d85db6332e0d82a45a95e4ed.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; |