Fix ifs clang-format didn’t get

This commit is contained in:
numzero
2023-10-04 21:10:58 +03:00
committed by Desour
parent 565c114f94
commit d5690cc43b
25 changed files with 69 additions and 138 deletions

View File

@ -306,17 +306,14 @@ void CGUIStaticText::breakText()
c = Text[i];
bool lineBreak = false;
if (c == L'\r') // Mac or Windows breaks
{
if (c == L'\r') { // Mac or Windows breaks
lineBreak = true;
if (Text[i + 1] == L'\n') // Windows breaks
{
if (Text[i + 1] == L'\n') { // Windows breaks
Text.erase(i + 1);
--size;
}
c = '\0';
} else if (c == L'\n') // Unix breaks
{
} else if (c == L'\n') { // Unix breaks
lineBreak = true;
c = '\0';
}
@ -397,17 +394,14 @@ void CGUIStaticText::breakText()
c = Text[i];
bool lineBreak = false;
if (c == L'\r') // Mac or Windows breaks
{
if (c == L'\r') { // Mac or Windows breaks
lineBreak = true;
if ((i > 0) && Text[i - 1] == L'\n') // Windows breaks
{
if ((i > 0) && Text[i - 1] == L'\n') { // Windows breaks
Text.erase(i - 1);
--size;
}
c = '\0';
} else if (c == L'\n') // Unix breaks
{
} else if (c == L'\n') { // Unix breaks
lineBreak = true;
c = '\0';
}