diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-01-17 18:20:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-01-17 18:20:02 +0300 |
commit | f46644e0096ffa2ce57c23707d588b2c073eed55 (patch) | |
tree | d46af09d51968c9ced37e1551cd1ff95ee07d3a1 /src/gui/widgets/containerplacer.h | |
parent | b99b796ff57b0da269fa67d7eb05670be0558589 (diff) | |
download | plus-f46644e0096ffa2ce57c23707d588b2c073eed55.tar.gz plus-f46644e0096ffa2ce57c23707d588b2c073eed55.tar.bz2 plus-f46644e0096ffa2ce57c23707d588b2c073eed55.tar.xz plus-f46644e0096ffa2ce57c23707d588b2c073eed55.zip |
Add missing A_DEFAULT_COPY / A_DELETE_COPY into gui.
Diffstat (limited to 'src/gui/widgets/containerplacer.h')
-rw-r--r-- | src/gui/widgets/containerplacer.h | 16 |
1 files changed, 11 insertions, 5 deletions
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; |