diff --git a/src/blitter/32bpp_optimized.cpp b/src/blitter/32bpp_optimized.cpp index da38560abf..9c42b6a44f 100644 --- a/src/blitter/32bpp_optimized.cpp +++ b/src/blitter/32bpp_optimized.cpp @@ -21,7 +21,7 @@ static FBlitter_32bppOptimized iFBlitter_32bppOptimized; /** * 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 zoom zoom level at which we are drawing */ diff --git a/src/core/alloc_func.hpp b/src/core/alloc_func.hpp index e86a347636..5268803e81 100644 --- a/src/core/alloc_func.hpp +++ b/src/core/alloc_func.hpp @@ -27,7 +27,7 @@ void NORETURN ReallocError(size_t size); * type. * @note throws an error when there is no memory anymore. * @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. * @return NULL when num_elements == 0, non-NULL otherwise. */ @@ -52,7 +52,7 @@ static FORCEINLINE T *MallocT(size_t num_elements) * type. * @note throws an error when there is no memory anymore. * @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. * @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. * @note throws an error when there is no memory anymore. * @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 num_elements the number of elements to allocate of the given type. * @return NULL when num_elements == 0, non-NULL otherwise. diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index 9dba83ad4c..60365f7aed 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -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 - * @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 y Top of the box to draw in */ diff --git a/src/economy.cpp b/src/economy.cpp index 10be114e2c..ccb673bd55 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -989,7 +989,6 @@ static void TriggerIndustryProduction(Industry *i) /** * Makes us a new cargo payment helper. * @param front The front of the train - * @param destinations List to add the destinations of 'our' cargo to */ CargoPayment::CargoPayment(Vehicle *front) : front(front), diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp index 9dd2e56d35..1be3ee64e1 100644 --- a/src/newgrf_industries.cpp +++ b/src/newgrf_industries.cpp @@ -156,7 +156,6 @@ static uint32 GetCountAndDistanceOfClosestInstance(byte param_setID, byte layout * @param variable that is queried * @param parameter unused * @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*/ uint32 IndustryGetVariable(const ResolverObject *object, byte variable, byte parameter, bool *available) { diff --git a/src/osk_gui.cpp b/src/osk_gui.cpp index e209ed1a60..ce6d343a96 100644 --- a/src/osk_gui.cpp +++ b/src/osk_gui.cpp @@ -534,8 +534,6 @@ void GetKeyboardLayout() /** * Show the on-screen keyboard (osk) associated with a given textbox * @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 cancel widget number of parent's cancel button (0 if cancel events * should not be passed) diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp index 7822338b1b..282154a196 100644 --- a/src/rail_gui.cpp +++ b/src/rail_gui.cpp @@ -636,7 +636,6 @@ struct BuildRailToolbarWindow : Window { /** Configures the rail toolbar for railtype given * @param railtype the railtype to display - * @param w the window to modify */ void SetupRailToolbar(RailType railtype) { @@ -1933,10 +1932,10 @@ static void SetDefaultRailGui() /** * Updates the current signal variant used in the signal GUI * 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 */ -bool ResetSignalVariant(int32 = 0) +bool ResetSignalVariant(int32 p = 0) { SignalVariant new_variant = (_cur_year < _settings_client.gui.semaphore_build_before ? SIG_SEMAPHORE : SIG_ELECTRIC); diff --git a/src/rail_map.h b/src/rail_map.h index 5a203aa2bb..f9cca02f0b 100644 --- a/src/rail_map.h +++ b/src/rail_map.h @@ -368,7 +368,7 @@ static inline void SetSignalStates(TileIndex tile, uint state) /** * Set the states of the signals (Along/AgainstTrackDir) * @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) { diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp index 3b859c6db8..b3e8e48890 100644 --- a/src/road_cmd.cpp +++ b/src/road_cmd.cpp @@ -1269,7 +1269,6 @@ void DrawRoadDepotSprite(int x, int y, DiagDirection dir, RoadType rt) /** * Updates cached nearest town for all road tiles * @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 */ void UpdateNearestTownForRoadTiles(bool invalidate) diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp index b1d2625d5d..0124740ba3 100644 --- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -61,7 +61,6 @@ extern void InitializeRailGUI(); * This as for example docks and shipdepots do not store * whether the tile used to be canal or 'normal' water. * @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 */ void SetWaterClassDependingOnSurroundings(TileIndex t, bool include_invalid_water_class) diff --git a/src/settings.cpp b/src/settings.cpp index ac01cfd302..ba7cec8ad1 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -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 * @param index offset in the SettingDesc array of the Settings struct which * identifies the setting member we want to change - * @param object pointer to a valid settings struct that has its settings change. - * 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 */ + * @param value new value of the setting + */ bool SetSettingValue(uint index, int32 value) { 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 * @param index offset in the SettingDesc array of the CompanySettings struct * 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) { const SettingDesc *sd = &_company_settings[index]; diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp index 7e17570052..850f92933d 100644 --- a/src/smallmap_gui.cpp +++ b/src/smallmap_gui.cpp @@ -647,9 +647,6 @@ public: *