Skip to content

Commit

Permalink
GUI2/Grid: explicitly delete copy and move ctors
Browse files Browse the repository at this point in the history
The base class (widget) copy ctor and assignment operator are deleted, but this is to try to fix
some test build errors with GCC.
  • Loading branch information
Vultraz committed Aug 25, 2017
1 parent 0230d46 commit 1fc988f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/gui/widgets/grid.hpp
Expand Up @@ -33,6 +33,12 @@ class grid : public widget
public:
explicit grid(const unsigned rows = 0, const unsigned cols = 0);

/** Delete the copy constructor. */
grid(const grid&) = delete;

/** Delete the move assignment operator. */
grid& operator=(const grid&) = delete;

virtual ~grid();

/***** ***** ***** ***** LAYOUT FLAGS ***** ***** ***** *****/
Expand Down

0 comments on commit 1fc988f

Please sign in to comment.