(svn r16373) -Codechange: use () instead of (void) for functions without parameters

This commit is contained in:
smatz 2009-05-21 22:43:25 +00:00
parent c497e9e7ed
commit 6afce484bb
8 changed files with 17 additions and 17 deletions

View File

@ -51,7 +51,7 @@ static inline bool IsAllGroupID(GroupID id_g)
/** /**
* Get the current size of the GroupPool * Get the current size of the GroupPool
*/ */
static inline uint GetGroupArraySize(void) static inline uint GetGroupArraySize()
{ {
const Group *g; const Group *g;
uint num = 0; uint num = 0;

View File

@ -62,7 +62,7 @@ bool Group::IsValid() const
return this->owner != INVALID_OWNER; return this->owner != INVALID_OWNER;
} }
void InitializeGroup(void) void InitializeGroup()
{ {
_Group_pool.CleanPool(); _Group_pool.CleanPool();
_Group_pool.AddBlockToPool(); _Group_pool.AddBlockToPool();

View File

@ -1846,7 +1846,7 @@ struct ProbabilityHelper {
/** /**
* Try to create a random industry, during gameplay * Try to create a random industry, during gameplay
*/ */
static void MaybeNewIndustry(void) static void MaybeNewIndustry()
{ {
Industry *ind; // will receive the industry's creation pointer Industry *ind; // will receive the industry's creation pointer
IndustryType rndtype, j; // Loop controlers IndustryType rndtype, j; // Loop controlers

View File

@ -526,7 +526,7 @@ void GetTileDesc(TileIndex tile, TileDesc *td)
* @return true if the table has been loaded already. * @return true if the table has been loaded already.
* @ingroup SnowLineGroup * @ingroup SnowLineGroup
*/ */
bool IsSnowLineSet(void) bool IsSnowLineSet()
{ {
return _snow_line != NULL; return _snow_line != NULL;
} }
@ -555,7 +555,7 @@ void SetSnowLine(byte table[SNOW_LINE_MONTHS][SNOW_LINE_DAYS])
* @return the snow line height. * @return the snow line height.
* @ingroup SnowLineGroup * @ingroup SnowLineGroup
*/ */
byte GetSnowLine(void) byte GetSnowLine()
{ {
if (_snow_line == NULL) return _settings_game.game_creation.snow_line; if (_snow_line == NULL) return _settings_game.game_creation.snow_line;
@ -569,7 +569,7 @@ byte GetSnowLine(void)
* @return the highest snow line height. * @return the highest snow line height.
* @ingroup SnowLineGroup * @ingroup SnowLineGroup
*/ */
byte HighestSnowLine(void) byte HighestSnowLine()
{ {
return _snow_line == NULL ? _settings_game.game_creation.snow_line : _snow_line->highest_value; return _snow_line == NULL ? _settings_game.game_creation.snow_line : _snow_line->highest_value;
} }
@ -579,7 +579,7 @@ byte HighestSnowLine(void)
* @return the lowest snow line height. * @return the lowest snow line height.
* @ingroup SnowLineGroup * @ingroup SnowLineGroup
*/ */
byte LowestSnowLine(void) byte LowestSnowLine()
{ {
return _snow_line == NULL ? _settings_game.game_creation.snow_line : _snow_line->lowest_value; return _snow_line == NULL ? _settings_game.game_creation.snow_line : _snow_line->lowest_value;
} }
@ -588,7 +588,7 @@ byte LowestSnowLine(void)
* Clear the variable snow line table and free the memory. * Clear the variable snow line table and free the memory.
* @ingroup SnowLineGroup * @ingroup SnowLineGroup
*/ */
void ClearSnowLine(void) void ClearSnowLine()
{ {
free(_snow_line); free(_snow_line);
_snow_line = NULL; _snow_line = NULL;

View File

@ -23,12 +23,12 @@ struct SnowLine {
byte lowest_value; ///< Lowest snow line of the year byte lowest_value; ///< Lowest snow line of the year
}; };
bool IsSnowLineSet(void); bool IsSnowLineSet();
void SetSnowLine(byte table[SNOW_LINE_MONTHS][SNOW_LINE_DAYS]); void SetSnowLine(byte table[SNOW_LINE_MONTHS][SNOW_LINE_DAYS]);
byte GetSnowLine(void); byte GetSnowLine();
byte HighestSnowLine(void); byte HighestSnowLine();
byte LowestSnowLine(void); byte LowestSnowLine();
void ClearSnowLine(void); void ClearSnowLine();
uint GetPartialZ(int x, int y, Slope corners); uint GetPartialZ(int x, int y, Slope corners);
uint GetSlopeZ(int x, int y); uint GetSlopeZ(int x, int y);

View File

@ -17,7 +17,7 @@ static const SaveLoad _group_desc[] = {
SLE_END() SLE_END()
}; };
static void Save_GRPS(void) static void Save_GRPS()
{ {
Group *g; Group *g;
@ -28,7 +28,7 @@ static void Save_GRPS(void)
} }
static void Load_GRPS(void) static void Load_GRPS()
{ {
int index; int index;

View File

@ -157,7 +157,7 @@ private:
* On thread creation, this function is called, which calls the real startup * On thread creation, this function is called, which calls the real startup
* function. This to get back into the correct instance again. * function. This to get back into the correct instance again.
*/ */
static void Proxy(void) static void Proxy()
{ {
struct Task *child = FindTask(NULL); struct Task *child = FindTask(NULL);
struct OTTDThreadStartupMessage *msg; struct OTTDThreadStartupMessage *msg;

View File

@ -146,7 +146,7 @@ static const WindowDesc _transparency_desc(
_transparency_widgets, _nested_transparency_widgets, lengthof(_nested_transparency_widgets) _transparency_widgets, _nested_transparency_widgets, lengthof(_nested_transparency_widgets)
); );
void ShowTransparencyToolbar(void) void ShowTransparencyToolbar()
{ {
AllocateWindowDescFront<TransparenciesWindow>(&_transparency_desc, 0); AllocateWindowDescFront<TransparenciesWindow>(&_transparency_desc, 0);
} }