diff options
Diffstat (limited to 'src/gui/widgets/layout.h')
-rw-r--r-- | src/gui/widgets/layout.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gui/widgets/layout.h b/src/gui/widgets/layout.h index cb0000073..267e8da6e 100644 --- a/src/gui/widgets/layout.h +++ b/src/gui/widgets/layout.h @@ -72,7 +72,6 @@ class LayoutArray final friend class LayoutCell; public: - LayoutArray(); ~LayoutArray(); @@ -121,9 +120,8 @@ class LayoutArray final void reflow(const int nX, const int nY, const int nW, const int nH); private: - // Copy not allowed, as the array owns all its cells. - LayoutArray(LayoutArray const &); + explicit LayoutArray(LayoutArray const &); LayoutArray &operator=(LayoutArray const &); /** @@ -289,7 +287,7 @@ class LayoutCell private: // Copy not allowed, as the cell may own an array. - LayoutCell(LayoutCell const &); + explicit LayoutCell(LayoutCell const &); LayoutCell &operator=(LayoutCell const &); union @@ -365,4 +363,4 @@ class Layout final : public LayoutCell bool mComputed; }; -#endif // WIDGET_LAYOUT_H +#endif // WIDGET_LAYOUT_H |