Use better variable names in SetDivider

This commit is contained in:
John Scipione 2013-05-09 20:52:14 -04:00
parent df5d08a718
commit 91810d8efd
2 changed files with 6 additions and 6 deletions

View File

@ -65,7 +65,7 @@ public:
virtual void SetAlignment(alignment label);
alignment Alignment() const;
virtual void SetDivider(float dividing_line);
virtual void SetDivider(float position);
float Divider() const;
void ShowPopUpMarker();

View File

@ -626,16 +626,16 @@ BMenuField::Alignment() const
void
BMenuField::SetDivider(float divider)
BMenuField::SetDivider(float position)
{
divider = floorf(divider + 0.5);
position = floorf(position + 0.5);
float dx = fDivider - divider;
float delta = fDivider - position;
if (dx == 0.0f)
if (delta == 0.0f)
return;
fDivider = divider;
fDivider = position;
if ((Flags() & B_SUPPORTS_LAYOUT) != 0) {
// We should never get here, since layout support means, we also