Codechange: replace static inline with static for non-class functions
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
* @param str String identifier
|
||||
* @return StringTab from \a str
|
||||
*/
|
||||
static inline StringTab GetStringTab(StringID str)
|
||||
inline StringTab GetStringTab(StringID str)
|
||||
{
|
||||
StringTab result = (StringTab)(str >> TAB_SIZE_BITS);
|
||||
if (result >= TEXT_TAB_NEWGRF_START) return TEXT_TAB_NEWGRF_START;
|
||||
@@ -36,7 +36,7 @@ static inline StringTab GetStringTab(StringID str)
|
||||
* @param str String identifier
|
||||
* @return StringIndex from \a str
|
||||
*/
|
||||
static inline uint GetStringIndex(StringID str)
|
||||
inline uint GetStringIndex(StringID str)
|
||||
{
|
||||
return str - (GetStringTab(str) << TAB_SIZE_BITS);
|
||||
}
|
||||
@@ -47,7 +47,7 @@ static inline uint GetStringIndex(StringID str)
|
||||
* @param index StringIndex
|
||||
* @return StringID composed from \a tab and \a index
|
||||
*/
|
||||
static inline StringID MakeStringID(StringTab tab, uint index)
|
||||
inline StringID MakeStringID(StringTab tab, uint index)
|
||||
{
|
||||
if (tab == TEXT_TAB_NEWGRF_START) {
|
||||
assert(index < TAB_SIZE_NEWGRF);
|
||||
@@ -72,7 +72,7 @@ uint ConvertDisplaySpeedToKmhishSpeed(uint speed, VehicleType type);
|
||||
* @param type Type of vehicle for parameter.
|
||||
* @return Bit-packed velocity and vehicle type, for use with SetDParam().
|
||||
*/
|
||||
static inline int64_t PackVelocity(uint speed, VehicleType type)
|
||||
inline int64_t PackVelocity(uint speed, VehicleType type)
|
||||
{
|
||||
/* Vehicle type is a byte, so packed into the top 8 bits of the 64-bit
|
||||
* parameter, although only values from 0-3 are relevant. */
|
||||
|
Reference in New Issue
Block a user