1
0
Fork 0

(svn r17579) -Fix: remove doxygen docs for removed parameters, or change @param to @tparam if necessary

release/1.0
rubidium 2009-09-19 15:17:47 +00:00
parent 89df436f84
commit ca91a97826
18 changed files with 15 additions and 31 deletions

View File

@ -21,7 +21,7 @@ static FBlitter_32bppOptimized iFBlitter_32bppOptimized;
/** /**
* Draws a sprite to a (screen) buffer. It is templated to allow faster operation. * Draws a sprite to a (screen) buffer. It is templated to allow faster operation.
* *
* @param mode blitter mode * @tparam mode blitter mode
* @param bp further blitting parameters * @param bp further blitting parameters
* @param zoom zoom level at which we are drawing * @param zoom zoom level at which we are drawing
*/ */

View File

@ -27,7 +27,7 @@ void NORETURN ReallocError(size_t size);
* type. * type.
* @note throws an error when there is no memory anymore. * @note throws an error when there is no memory anymore.
* @note the memory contains garbage data (i.e. possibly non-zero values). * @note the memory contains garbage data (i.e. possibly non-zero values).
* @param T the type of the variable(s) to allocation. * @tparam T the type of the variable(s) to allocation.
* @param num_elements the number of elements to allocate of the given type. * @param num_elements the number of elements to allocate of the given type.
* @return NULL when num_elements == 0, non-NULL otherwise. * @return NULL when num_elements == 0, non-NULL otherwise.
*/ */
@ -52,7 +52,7 @@ static FORCEINLINE T *MallocT(size_t num_elements)
* type. * type.
* @note throws an error when there is no memory anymore. * @note throws an error when there is no memory anymore.
* @note the memory contains all zero values. * @note the memory contains all zero values.
* @param T the type of the variable(s) to allocation. * @tparam T the type of the variable(s) to allocation.
* @param num_elements the number of elements to allocate of the given type. * @param num_elements the number of elements to allocate of the given type.
* @return NULL when num_elements == 0, non-NULL otherwise. * @return NULL when num_elements == 0, non-NULL otherwise.
*/ */
@ -77,7 +77,7 @@ static FORCEINLINE T *CallocT(size_t num_elements)
* type. It extends/shrinks the memory allocation given in t_ptr. * type. It extends/shrinks the memory allocation given in t_ptr.
* @note throws an error when there is no memory anymore. * @note throws an error when there is no memory anymore.
* @note the pointer to the data may change, but the data will remain valid. * @note the pointer to the data may change, but the data will remain valid.
* @param T the type of the variable(s) to allocation. * @tparam T the type of the variable(s) to allocation.
* @param t_ptr the previous allocation to extend/shrink. * @param t_ptr the previous allocation to extend/shrink.
* @param num_elements the number of elements to allocate of the given type. * @param num_elements the number of elements to allocate of the given type.
* @return NULL when num_elements == 0, non-NULL otherwise. * @return NULL when num_elements == 0, non-NULL otherwise.

View File

@ -262,8 +262,7 @@ struct DepotWindow : Window {
} }
/** Draw a vehicle in the depot window in the box with the top left corner at x,y /** Draw a vehicle in the depot window in the box with the top left corner at x,y
* @param *w Window to draw in * @param v Vehicle to draw
* @param *v Vehicle to draw
* @param x Left side of the box to draw in * @param x Left side of the box to draw in
* @param y Top of the box to draw in * @param y Top of the box to draw in
*/ */

View File

@ -989,7 +989,6 @@ static void TriggerIndustryProduction(Industry *i)
/** /**
* Makes us a new cargo payment helper. * Makes us a new cargo payment helper.
* @param front The front of the train * @param front The front of the train
* @param destinations List to add the destinations of 'our' cargo to
*/ */
CargoPayment::CargoPayment(Vehicle *front) : CargoPayment::CargoPayment(Vehicle *front) :
front(front), front(front),

View File

@ -156,7 +156,6 @@ static uint32 GetCountAndDistanceOfClosestInstance(byte param_setID, byte layout
* @param variable that is queried * @param variable that is queried
* @param parameter unused * @param parameter unused
* @param available will return false if ever the variable asked for does not exist * @param available will return false if ever the variable asked for does not exist
* @param ind is of course the industry we are inquiring
* @return the value stored in the corresponding variable*/ * @return the value stored in the corresponding variable*/
uint32 IndustryGetVariable(const ResolverObject *object, byte variable, byte parameter, bool *available) uint32 IndustryGetVariable(const ResolverObject *object, byte variable, byte parameter, bool *available)
{ {

View File

@ -534,8 +534,6 @@ void GetKeyboardLayout()
/** /**
* Show the on-screen keyboard (osk) associated with a given textbox * Show the on-screen keyboard (osk) associated with a given textbox
* @param parent pointer to the Window where this keyboard originated from * @param parent pointer to the Window where this keyboard originated from
* @param q querystr_d pointer to the query string of the parent, which is
* shared for both windows
* @param button widget number of parent's textbox * @param button widget number of parent's textbox
* @param cancel widget number of parent's cancel button (0 if cancel events * @param cancel widget number of parent's cancel button (0 if cancel events
* should not be passed) * should not be passed)

View File

@ -636,7 +636,6 @@ struct BuildRailToolbarWindow : Window {
/** Configures the rail toolbar for railtype given /** Configures the rail toolbar for railtype given
* @param railtype the railtype to display * @param railtype the railtype to display
* @param w the window to modify
*/ */
void SetupRailToolbar(RailType railtype) void SetupRailToolbar(RailType railtype)
{ {
@ -1933,10 +1932,10 @@ static void SetDefaultRailGui()
/** /**
* Updates the current signal variant used in the signal GUI * Updates the current signal variant used in the signal GUI
* to the one adequate to current year. * to the one adequate to current year.
* @param 0 needed to be called when a setting changes * @param p needed to be called when a setting changes
* @return success, needed for settings * @return success, needed for settings
*/ */
bool ResetSignalVariant(int32 = 0) bool ResetSignalVariant(int32 p = 0)
{ {
SignalVariant new_variant = (_cur_year < _settings_client.gui.semaphore_build_before ? SIG_SEMAPHORE : SIG_ELECTRIC); SignalVariant new_variant = (_cur_year < _settings_client.gui.semaphore_build_before ? SIG_SEMAPHORE : SIG_ELECTRIC);

View File

@ -368,7 +368,7 @@ static inline void SetSignalStates(TileIndex tile, uint state)
/** /**
* Set the states of the signals (Along/AgainstTrackDir) * Set the states of the signals (Along/AgainstTrackDir)
* @param tile the tile to set the states for * @param tile the tile to set the states for
* @param state the new state * @return the state of the signals
*/ */
static inline uint GetSignalStates(TileIndex tile) static inline uint GetSignalStates(TileIndex tile)
{ {

View File

@ -1269,7 +1269,6 @@ void DrawRoadDepotSprite(int x, int y, DiagDirection dir, RoadType rt)
/** /**
* Updates cached nearest town for all road tiles * Updates cached nearest town for all road tiles
* @param invalidate are we just invalidating cached data? * @param invalidate are we just invalidating cached data?
* @param ignore town that should be ignored (because we are deleting it now)
* @pre invalidate == true implies _generating_world == true * @pre invalidate == true implies _generating_world == true
*/ */
void UpdateNearestTownForRoadTiles(bool invalidate) void UpdateNearestTownForRoadTiles(bool invalidate)

View File

@ -61,7 +61,6 @@ extern void InitializeRailGUI();
* This as for example docks and shipdepots do not store * This as for example docks and shipdepots do not store
* whether the tile used to be canal or 'normal' water. * whether the tile used to be canal or 'normal' water.
* @param t the tile to change. * @param t the tile to change.
* @param o the owner of the new tile.
* @param include_invalid_water_class Also consider WATER_CLASS_INVALID, i.e. industry tiles on land * @param include_invalid_water_class Also consider WATER_CLASS_INVALID, i.e. industry tiles on land
*/ */
void SetWaterClassDependingOnSurroundings(TileIndex t, bool include_invalid_water_class) void SetWaterClassDependingOnSurroundings(TileIndex t, bool include_invalid_water_class)

View File

@ -1492,10 +1492,8 @@ CommandCost CmdChangeCompanySetting(TileIndex tile, DoCommandFlag flags, uint32
/** Top function to save the new value of an element of the Settings struct /** Top function to save the new value of an element of the Settings struct
* @param index offset in the SettingDesc array of the Settings struct which * @param index offset in the SettingDesc array of the Settings struct which
* identifies the setting member we want to change * identifies the setting member we want to change
* @param object pointer to a valid settings struct that has its settings change. * @param value new value of the setting
* This only affects setting-members that are not needed to be the same on all */
* clients in a network game.
* @param value new value of the setting */
bool SetSettingValue(uint index, int32 value) bool SetSettingValue(uint index, int32 value)
{ {
const SettingDesc *sd = &_settings[index]; const SettingDesc *sd = &_settings[index];
@ -1526,8 +1524,8 @@ bool SetSettingValue(uint index, int32 value)
/** Top function to save the new value of an element of the Settings struct /** Top function to save the new value of an element of the Settings struct
* @param index offset in the SettingDesc array of the CompanySettings struct * @param index offset in the SettingDesc array of the CompanySettings struct
* which identifies the setting member we want to change * which identifies the setting member we want to change
* @param object pointer to a valid CompanySettings struct that has its settings changed. * @param value new value of the setting
* @param value new value of the setting */ */
void SetCompanySetting(uint index, int32 value) void SetCompanySetting(uint index, int32 value)
{ {
const SettingDesc *sd = &_company_settings[index]; const SettingDesc *sd = &_company_settings[index];

View File

@ -647,9 +647,6 @@ public:
* <li>Town names (optional)</li></ol> * <li>Town names (optional)</li></ol>
* *
* @param dpi pointer to pixel to write onto * @param dpi pointer to pixel to write onto
* @param w pointer to Window struct
* @param type type of map requested (vegetation, owners, routes, etc)
* @param show_towns true if the town names should be displayed, false if not.
*/ */
void DrawSmallMap(DrawPixelInfo *dpi) void DrawSmallMap(DrawPixelInfo *dpi)
{ {

View File

@ -493,7 +493,6 @@ void *AllocSprite(size_t mem_req)
* For ST_FONT sprites, it is normal. In other cases, default sprite is loaded instead. * For ST_FONT sprites, it is normal. In other cases, default sprite is loaded instead.
* @param sprite ID of loaded sprite * @param sprite ID of loaded sprite
* @param requested requested sprite type * @param requested requested sprite type
* @param available available sprite type
* @param sc the currently known sprite cache for the requested sprite * @param sc the currently known sprite cache for the requested sprite
* @return fallback sprite * @return fallback sprite
* @note this function will do usererror() in the case the fallback sprite isn't available */ * @note this function will do usererror() in the case the fallback sprite isn't available */

View File

@ -863,7 +863,7 @@ void GetStationLayout(byte *layout, int numtracks, int plat_len, const StationSp
/** /**
* Find a nearby station that joins this station. * Find a nearby station that joins this station.
* @tparam T the class to find a station for * @tparam T the class to find a station for
* @param error_message the error message when building a station on top of others * @tparam error_message the error message when building a station on top of others
* @param existing_station an existing station we build over * @param existing_station an existing station we build over
* @param station_to_join the station to join to * @param station_to_join the station to join to
* @param adjacent whether adjacent stations are allowed * @param adjacent whether adjacent stations are allowed

View File

@ -59,7 +59,6 @@ static inline uint64 GetDParamX(const uint64 *s, uint n)
/** /**
* Get the current string parameter at index \a n from the global string parameter array. * Get the current string parameter at index \a n from the global string parameter array.
* @param s Array of string parameters.
* @param n Index of the string parameter. * @param n Index of the string parameter.
* @return Value of the requested string parameter. * @return Value of the requested string parameter.
*/ */

View File

@ -149,7 +149,7 @@ static void TerraformAddDirtyTileAround(TerraformerState *ts, TileIndex tile)
* @param ts TerraformerState. * @param ts TerraformerState.
* @param tile Tile. * @param tile Tile.
* @param height Aimed height. * @param height Aimed height.
* @param return Error code or cost. * @return Error code or cost.
*/ */
static CommandCost TerraformTileHeight(TerraformerState *ts, TileIndex tile, int height) static CommandCost TerraformTileHeight(TerraformerState *ts, TileIndex tile, int height)
{ {

View File

@ -1486,7 +1486,6 @@ void UpdateTownMaxPass(Town *t)
* @param tile Where to put it * @param tile Where to put it
* @param townnameparts The town name * @param townnameparts The town name
* @param size Parameter for size determination * @param size Parameter for size determination
* @param size_mode How the size should be determined
* @param city whether to build a city or town * @param city whether to build a city or town
* @param layout the (road) layout of the town * @param layout the (road) layout of the town
*/ */

View File

@ -2356,7 +2356,7 @@ Scrollbar *NWidgetLeaf::FindScrollbar(Window *w, bool allow_next)
* @param pt Point in the widget. * @param pt Point in the widget.
* @return The point refers to the button. * @return The point refers to the button.
* *
* @param The magic constants are also used at #DrawButtonDropdown. * @note The magic constants are also used at #DrawButtonDropdown.
*/ */
bool NWidgetLeaf::ButtonHit(const Point &pt) bool NWidgetLeaf::ButtonHit(const Point &pt)
{ {