summaryrefslogtreecommitdiff
path: root/src/gui/widgets/containerplacer.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-17 18:20:02 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-17 18:20:02 +0300
commitf46644e0096ffa2ce57c23707d588b2c073eed55 (patch)
treed46af09d51968c9ced37e1551cd1ff95ee07d3a1 /src/gui/widgets/containerplacer.h
parentb99b796ff57b0da269fa67d7eb05670be0558589 (diff)
downloadmv-f46644e0096ffa2ce57c23707d588b2c073eed55.tar.gz
mv-f46644e0096ffa2ce57c23707d588b2c073eed55.tar.bz2
mv-f46644e0096ffa2ce57c23707d588b2c073eed55.tar.xz
mv-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.h16
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;