Cleanup: Horizontal widget size is commonly width rather than length.

(cherry picked from commit 5153e1b6e3)
This commit is contained in:
Peter Nelson
2021-04-22 01:18:22 +01:00
committed by Jonathan G Rennison
parent da425711e1
commit dc6055bd82
2 changed files with 4 additions and 4 deletions

View File

@@ -1537,12 +1537,12 @@ void NWidgetVertical::AssignSizePosition(SizingType sizing, uint x, uint y, uint
/**
* Generic spacer widget.
* @param length Horizontal size of the spacer widget.
* @param width Horizontal size of the spacer widget.
* @param height Vertical size of the spacer widget.
*/
NWidgetSpacer::NWidgetSpacer(int length, int height) : NWidgetResizeBase(NWID_SPACER, 0, 0)
NWidgetSpacer::NWidgetSpacer(int width, int height) : NWidgetResizeBase(NWID_SPACER, 0, 0)
{
this->SetMinimalSize(length, height);
this->SetMinimalSize(width, height);
this->SetResize(0, 0);
}