mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-29 05:17:58 +03:00
Apply clang-format to code base
This commit is contained in:
parent
f37d0be806
commit
ddb0522bbf
2199 changed files with 118692 additions and 114392 deletions
|
@ -19,15 +19,15 @@ namespace LuaUi
|
|||
{
|
||||
switch (alignment)
|
||||
{
|
||||
case Alignment::Start:
|
||||
alignedPosition = 0;
|
||||
break;
|
||||
case Alignment::Center:
|
||||
alignedPosition = (container - content) / 2;
|
||||
break;
|
||||
case Alignment::End:
|
||||
alignedPosition = container - content;
|
||||
break;
|
||||
case Alignment::Start:
|
||||
alignedPosition = 0;
|
||||
break;
|
||||
case Alignment::Center:
|
||||
alignedPosition = (container - content) / 2;
|
||||
break;
|
||||
case Alignment::End:
|
||||
alignedPosition = container - content;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return alignedPosition;
|
||||
|
@ -43,7 +43,7 @@ namespace LuaUi
|
|||
{
|
||||
float totalGrow = 0;
|
||||
MyGUI::IntSize childrenSize;
|
||||
for (auto* w: children())
|
||||
for (auto* w : children())
|
||||
{
|
||||
w->clearForced();
|
||||
MyGUI::IntSize size = w->calculateSize();
|
||||
|
@ -91,7 +91,8 @@ namespace LuaUi
|
|||
MyGUI::IntSize LuaFlex::calculateSize()
|
||||
{
|
||||
MyGUI::IntSize size = WidgetExtension::calculateSize();
|
||||
if (mAutoSized) {
|
||||
if (mAutoSized)
|
||||
{
|
||||
primary(size) = std::max(primary(size), primary(mChildrenSize));
|
||||
secondary(size) = std::max(secondary(size), secondary(mChildrenSize));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue