From 182c8f8357739f905bbd721006480502435b6b43 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Sun, 27 Nov 2022 12:04:31 -0800 Subject: Update brace style to match rest of my projects --- app/source/Cplt/Model/Template/TableTemplate.hpp | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) (limited to 'app/source/Cplt/Model/Template/TableTemplate.hpp') diff --git a/app/source/Cplt/Model/Template/TableTemplate.hpp b/app/source/Cplt/Model/Template/TableTemplate.hpp index 3e931d4..e0dea09 100644 --- a/app/source/Cplt/Model/Template/TableTemplate.hpp +++ b/app/source/Cplt/Model/Template/TableTemplate.hpp @@ -11,11 +11,9 @@ #include #include -class TableCell -{ +class TableCell { public: - enum TextAlignment - { + enum TextAlignment { /// For horizontal alignment, this means align left. For vertical alignment, this means align top. AlignAxisMin, /// Align middle of the text to the middle of the axis. @@ -24,8 +22,7 @@ public: AlignAxisMax, }; - enum CellType - { + enum CellType { ConstantCell, SingularParametricCell, ArrayParametricCell, @@ -89,8 +86,7 @@ public: /// \see TableCell /// \see TableInstantiationParameters /// \see TableTemplate -class TableArrayGroup -{ +class TableArrayGroup { public: /// Parameter name mapped to cell location (index from LeftCell). tsl::array_map mName2Cell; @@ -119,8 +115,7 @@ struct lxw_worksheet; /// An object containing the necessary information to instantiate a table template. /// \see TableTemplate -class TableInstantiationParameters -{ +class TableInstantiationParameters { private: const TableTemplate* mTable; @@ -144,8 +139,7 @@ public: /// parametric rows/columns, and grids are also supported. /// /// This current supports exporting to xlsx files. -class TableTemplate : public Template -{ +class TableTemplate : public Template { friend class TableSingleParamsIter; friend class TableArrayGroupsIter; class Private; @@ -201,15 +195,13 @@ public: /// Find an array group by its name. TableArrayGroup* FindArrayGroup(std::string_view name); - enum MergeCellsResult - { + enum MergeCellsResult { MCR_CellAlreadyMerged, MCR_Success, }; MergeCellsResult MergeCells(Vec2i topLeft, Vec2i bottomRight); - enum BreakCellsResult - { + enum BreakCellsResult { BCR_CellNotMerged, BCR_Success, }; -- cgit v1.2.3-70-g09d2