From f46644e0096ffa2ce57c23707d588b2c073eed55 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 17 Jan 2017 18:20:02 +0300 Subject: Add missing A_DEFAULT_COPY / A_DELETE_COPY into gui. --- src/gui/widgets/containerplacer.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'src/gui/widgets/containerplacer.h') diff --git a/src/gui/widgets/containerplacer.h b/src/gui/widgets/containerplacer.h index d9a0e326e..cd1e0221e 100644 --- a/src/gui/widgets/containerplacer.h +++ b/src/gui/widgets/containerplacer.h @@ -35,12 +35,14 @@ class Widget; class ContainerPlacer final { public: - explicit ContainerPlacer(BasicContainer2 *c = nullptr, - LayoutCell *lc = nullptr) : + explicit ContainerPlacer(BasicContainer2 *const c = nullptr, + LayoutCell *const lc = nullptr) : mContainer(c), mCell(lc) {} + A_DEFAULT_COPY(ContainerPlacer) + /** * Gets the pointed cell. */ @@ -50,14 +52,18 @@ class ContainerPlacer final /** * Returns a placer for the same container but to an inner cell. */ - ContainerPlacer at(const int x, const int y) A_WARN_UNUSED; + ContainerPlacer at(const int x, + const int y) A_WARN_UNUSED; /** * Adds the given widget to the container and places it in the layout. * @see LayoutArray::place */ - LayoutCell &operator()(const int x, const int y, Widget *const wg, - const int w = 1, const int h = 1); + LayoutCell &operator()(const int x, + const int y, + Widget *const wg, + const int w = 1, + const int h = 1); private: BasicContainer2 *mContainer; -- cgit v1.2.3-70-g09d2