wasm: add braces around multiline else case
From clang warning: qwasmcompositor.cpp:335:13: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] offset += (delta +delta); Change-Id: Id372dfdd8fda1c705c61a24c26843dfb33fba40c Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
This commit is contained in:
parent
3f3e200aef
commit
85a1582412
@ -328,11 +328,12 @@ QRect QWasmCompositor::titlebarRect(QWasmTitleBarOptions tb, QWasmCompositor::Su
|
||||
}
|
||||
break;
|
||||
case SC_TitleBarNormalButton:
|
||||
if (isMinimized && (tb.flags & Qt::WindowMinimizeButtonHint))
|
||||
if (isMinimized && (tb.flags & Qt::WindowMinimizeButtonHint)) {
|
||||
offset += delta;
|
||||
else if (isMaximized && (tb.flags & Qt::WindowMaximizeButtonHint))
|
||||
} else if (isMaximized && (tb.flags & Qt::WindowMaximizeButtonHint)) {
|
||||
ret.adjust(0, 0, -delta*2, 0);
|
||||
offset += (delta +delta);
|
||||
}
|
||||
break;
|
||||
case SC_TitleBarSysMenu:
|
||||
if (tb.flags & Qt::WindowSystemMenuHint) {
|
||||
|
Loading…
Reference in New Issue
Block a user