mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Converted attributes to use c++17 functionality
This commit is contained in:
@@ -65,7 +65,7 @@ InfoBox::InfoBox(Point position, InfoPos Pos, InfoSize Size, std::shared_ptr<IIn
|
||||
break;
|
||||
case POS_UP_DOWN:
|
||||
name = std::make_shared<CLabel>(pos.w/2, -12, font, ETextAlignment::CENTER, Colors::WHITE, data->getNameText());
|
||||
FALLTHROUGH;
|
||||
[[fallthrough]];
|
||||
case POS_DOWN:
|
||||
value = std::make_shared<CLabel>(pos.w/2, pos.h+8, font, ETextAlignment::CENTER, Colors::WHITE, data->getValueText());
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user