diff --git a/src/core/strong_typedef_type.hpp b/src/core/strong_typedef_type.hpp index b88f343599..a89ec0460f 100644 --- a/src/core/strong_typedef_type.hpp +++ b/src/core/strong_typedef_type.hpp @@ -116,11 +116,11 @@ namespace StrongType { * Templated helper to make a type-safe 'typedef' representing a single POD value. * A normal 'typedef' is not distinct from its base type and will be treated as * identical in many contexts. This class provides a distinct type that can still - * be assign from and compared to values of its base type. + * be assigned from and compared to values of its base type. * * Example usage: * - * using MyType = StrongType::Typedef; + * using MyType = StrongType::Typedef; * * @tparam TBaseType Type of the derived class (i.e. the concrete usage of this class). * @tparam TTag An unique struct to keep types of the same TBaseType distinct. diff --git a/src/dropdown_common_type.h b/src/dropdown_common_type.h index 71becf9fa1..508de7eb29 100644 --- a/src/dropdown_common_type.h +++ b/src/dropdown_common_type.h @@ -172,7 +172,7 @@ public: /** * Drop down indent component. * @tparam TBase Base component. - * @tparam TEnd Position checkmark at end if true, or start if false. + * @tparam TEnd Position indent at end if true, or start if false. */ template class DropDownIndent : public TBase { diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 190ac269b0..7e20b20585 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -556,7 +556,7 @@ static StringID TTDPStringIDToOTTDStringIDMapping(GRFStringID str) * Used when setting an object's property to map to the GRF's strings * while taking in consideration the "drift" between TTDPatch string system and OpenTTD's one * @param grfid Id of the grf file. - * @param str StringID that we want to have the equivalent in OoenTTD. + * @param str GRF-local GRFStringID that we want to have the equivalent in OpenTTD. * @return The properly adjusted StringID. */ StringID MapGRFStringID(uint32_t grfid, GRFStringID str) @@ -4632,6 +4632,7 @@ static ChangeInfoResult RailTypeReserveInfo(uint first, uint last, int prop, Byt * @param last Local ID of the last roadtype. * @param prop The property to change. * @param buf The property value. + * @param rtt Road/tram type. * @return ChangeInfoResult. */ static ChangeInfoResult RoadTypeChangeInfo(uint first, uint last, int prop, ByteReader &buf, RoadTramType rtt) diff --git a/src/viewport.cpp b/src/viewport.cpp index 3ea84802c1..7405fce2d9 100644 --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -1311,7 +1311,6 @@ static void ViewportAddLandscape() /** * Add a string to draw in the current viewport. * @param dpi current viewport area - * @param small_from Zoomlevel from when the small font should be used * @param sign sign position and dimension * @param flags ViewportStringFlags to control the string's appearance. * @param colour colour of the sign background; or INVALID_COLOUR if transparent @@ -1376,7 +1375,7 @@ static void ViewportAddTownStrings(DrawPixelInfo *dpi, const std::vector &signs, bool small) @@ -1400,7 +1399,7 @@ static void ViewportAddSignStrings(DrawPixelInfo *dpi, const std::vector &stations, bool small) @@ -1963,6 +1962,7 @@ static void ClampSmoothScroll(uint32_t delta_ms, int64_t delta_hi, int64_t delta /** * Update the viewport position being displayed. * @param w %Window owning the viewport. + * @param delta_ms Milliseconds since the last update. */ void UpdateViewportPosition(Window *w, uint32_t delta_ms) { diff --git a/src/widget_type.h b/src/widget_type.h index 5d7d297206..ef16ab55e5 100644 --- a/src/widget_type.h +++ b/src/widget_type.h @@ -959,7 +959,9 @@ inline uint ComputeMaxSize(uint base, uint max_space, uint step) * Next, specify its properties with one or more of * - #SetMinimalSize Define the minimal size of the widget. * - #SetFill Define how the widget may grow to make it nicely. - * - #SetDataTip Define the data and the tooltip of the widget. + * - #SetStringTip Define the string and the tooltip of the widget. + * - #SetSpriteTip Define the sprite ID and the tooltip of the widget. + * - #SetToolTip Define the tooltip of the widget. * - #SetResize Define how the widget may resize. * - #SetPadding Create additional space around the widget. *