Use std::min and std::max, not the misc versions.
This commit is contained in:
@ -37,8 +37,8 @@ Bullet::~Bullet ()
|
||||
|
||||
void Bullet::sizeRequestSimpl (core::Requisition *requisition)
|
||||
{
|
||||
requisition->width = lout::misc::max (getStyle()->font->xHeight * 4 / 5, 1);
|
||||
requisition->ascent = lout::misc::max (getStyle()->font->xHeight, 1);
|
||||
requisition->width = std::max (getStyle()->font->xHeight * 4 / 5, 1);
|
||||
requisition->ascent = std::max (getStyle()->font->xHeight, 1);
|
||||
requisition->descent = 0;
|
||||
}
|
||||
|
||||
@ -46,7 +46,7 @@ void Bullet::getExtremesSimpl (core::Extremes *extremes)
|
||||
{
|
||||
extremes->minWidth = extremes->maxWidth = extremes->adjustmentWidth =
|
||||
extremes->minWidthIntrinsic = extremes->maxWidthIntrinsic =
|
||||
lout::misc::max (getStyle()->font->xHeight * 4 / 5, 1);
|
||||
std::max (getStyle()->font->xHeight * 4 / 5, 1);
|
||||
}
|
||||
|
||||
void Bullet::containerSizeChangedForChildren ()
|
||||
@ -62,7 +62,7 @@ void Bullet::draw (core::View *view, core::Rectangle *area,
|
||||
int x, y, l;
|
||||
bool filled = true;
|
||||
|
||||
l = lout::misc::min (allocation.width, allocation.ascent);
|
||||
l = std::min (allocation.width, allocation.ascent);
|
||||
x = allocation.x;
|
||||
y = allocation.y + allocation.ascent - getStyle()->font->xHeight;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user