Mercurial > hg > openttd
changeset 11967:8f2520911121 draft
(svn r16373) -Codechange: use () instead of (void) for functions without parameters
author | smatz <smatz@openttd.org> |
---|---|
date | Thu, 21 May 2009 22:43:25 +0000 |
parents | de771cbe234d |
children | 3a1043b2e1f9 |
files | src/group.h src/group_cmd.cpp src/industry_cmd.cpp src/landscape.cpp src/landscape.h src/saveload/group_sl.cpp src/thread_morphos.cpp src/transparency_gui.cpp |
diffstat | 8 files changed, 17 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/src/group.h +++ b/src/group.h @@ -51,7 +51,7 @@ /** * Get the current size of the GroupPool */ -static inline uint GetGroupArraySize(void) +static inline uint GetGroupArraySize() { const Group *g; uint num = 0;
--- a/src/group_cmd.cpp +++ b/src/group_cmd.cpp @@ -62,7 +62,7 @@ return this->owner != INVALID_OWNER; } -void InitializeGroup(void) +void InitializeGroup() { _Group_pool.CleanPool(); _Group_pool.AddBlockToPool();
--- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -1846,7 +1846,7 @@ /** * Try to create a random industry, during gameplay */ -static void MaybeNewIndustry(void) +static void MaybeNewIndustry() { Industry *ind; // will receive the industry's creation pointer IndustryType rndtype, j; // Loop controlers
--- a/src/landscape.cpp +++ b/src/landscape.cpp @@ -526,7 +526,7 @@ * @return true if the table has been loaded already. * @ingroup SnowLineGroup */ -bool IsSnowLineSet(void) +bool IsSnowLineSet() { return _snow_line != NULL; } @@ -555,7 +555,7 @@ * @return the snow line height. * @ingroup SnowLineGroup */ -byte GetSnowLine(void) +byte GetSnowLine() { if (_snow_line == NULL) return _settings_game.game_creation.snow_line; @@ -569,7 +569,7 @@ * @return the highest snow line height. * @ingroup SnowLineGroup */ -byte HighestSnowLine(void) +byte HighestSnowLine() { return _snow_line == NULL ? _settings_game.game_creation.snow_line : _snow_line->highest_value; } @@ -579,7 +579,7 @@ * @return the lowest snow line height. * @ingroup SnowLineGroup */ -byte LowestSnowLine(void) +byte LowestSnowLine() { return _snow_line == NULL ? _settings_game.game_creation.snow_line : _snow_line->lowest_value; } @@ -588,7 +588,7 @@ * Clear the variable snow line table and free the memory. * @ingroup SnowLineGroup */ -void ClearSnowLine(void) +void ClearSnowLine() { free(_snow_line); _snow_line = NULL;
--- a/src/landscape.h +++ b/src/landscape.h @@ -23,12 +23,12 @@ byte lowest_value; ///< Lowest snow line of the year }; -bool IsSnowLineSet(void); +bool IsSnowLineSet(); void SetSnowLine(byte table[SNOW_LINE_MONTHS][SNOW_LINE_DAYS]); -byte GetSnowLine(void); -byte HighestSnowLine(void); -byte LowestSnowLine(void); -void ClearSnowLine(void); +byte GetSnowLine(); +byte HighestSnowLine(); +byte LowestSnowLine(); +void ClearSnowLine(); uint GetPartialZ(int x, int y, Slope corners); uint GetSlopeZ(int x, int y);
--- a/src/saveload/group_sl.cpp +++ b/src/saveload/group_sl.cpp @@ -17,7 +17,7 @@ SLE_END() }; -static void Save_GRPS(void) +static void Save_GRPS() { Group *g; @@ -28,7 +28,7 @@ } -static void Load_GRPS(void) +static void Load_GRPS() { int index;
--- a/src/thread_morphos.cpp +++ b/src/thread_morphos.cpp @@ -157,7 +157,7 @@ * On thread creation, this function is called, which calls the real startup * function. This to get back into the correct instance again. */ - static void Proxy(void) + static void Proxy() { struct Task *child = FindTask(NULL); struct OTTDThreadStartupMessage *msg;
--- a/src/transparency_gui.cpp +++ b/src/transparency_gui.cpp @@ -146,7 +146,7 @@ _transparency_widgets, _nested_transparency_widgets, lengthof(_nested_transparency_widgets) ); -void ShowTransparencyToolbar(void) +void ShowTransparencyToolbar() { AllocateWindowDescFront<TransparenciesWindow>(&_transparency_desc, 0); }