summaryrefslogtreecommitdiff
path: root/plugingui/layout.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/layout.cc')
-rw-r--r--plugingui/layout.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugingui/layout.cc b/plugingui/layout.cc
index ea025bd..1e18c40 100644
--- a/plugingui/layout.cc
+++ b/plugingui/layout.cc
@@ -106,7 +106,8 @@ void BoxLayout::setSpacing(size_t spacing)
//
VBoxLayout::VBoxLayout(LayoutItem* parent)
- : BoxLayout(parent), align(HAlignment::center)
+ : BoxLayout(parent)
+ , align(HAlignment::center)
{
}
@@ -315,7 +316,7 @@ auto GridLayout::calculateCellSize() const -> CellSize
}
void GridLayout::moveAndResize(
- LayoutItem& item, GridRange const& range, CellSize cell_size) const
+ LayoutItem& item, GridRange const& range, CellSize cell_size) const
{
std::size_t x = range.column_begin * (cell_size.width + spacing);
std::size_t y = range.row_begin * (cell_size.height + spacing);