Fix Debian GCC7 FTBFS: remove default constructors
This commit is contained in:
@@ -60,14 +60,10 @@ namespace Network {
|
|||||||
UserEvent( const Parser::UserByte & s_userbyte ) : type( UserByteType ), userbyte( s_userbyte ), resize( -1, -1 ) {}
|
UserEvent( const Parser::UserByte & s_userbyte ) : type( UserByteType ), userbyte( s_userbyte ), resize( -1, -1 ) {}
|
||||||
UserEvent( const Parser::Resize & s_resize ) : type( ResizeType ), userbyte( 0 ), resize( s_resize ) {}
|
UserEvent( const Parser::Resize & s_resize ) : type( ResizeType ), userbyte( 0 ), resize( s_resize ) {}
|
||||||
|
|
||||||
UserEvent() /* default constructor required by C++11 STL */
|
private:
|
||||||
: type( UserByteType ),
|
UserEvent();
|
||||||
userbyte( 0 ),
|
|
||||||
resize( -1, -1 )
|
|
||||||
{
|
|
||||||
assert( false );
|
|
||||||
}
|
|
||||||
|
|
||||||
|
public:
|
||||||
bool operator==( const UserEvent &x ) const { return ( type == x.type ) && ( userbyte == x.userbyte ) && ( resize == x.resize ); }
|
bool operator==( const UserEvent &x ) const { return ( type == x.type ) && ( userbyte == x.userbyte ) && ( resize == x.resize ); }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -45,15 +45,6 @@ Cell::Cell( color_type background_color )
|
|||||||
fallback( false ),
|
fallback( false ),
|
||||||
wrap( false )
|
wrap( false )
|
||||||
{}
|
{}
|
||||||
Cell::Cell() /* default constructor required by C++11 STL */
|
|
||||||
: contents(),
|
|
||||||
renditions( 0 ),
|
|
||||||
wide( false ),
|
|
||||||
fallback( false ),
|
|
||||||
wrap( false )
|
|
||||||
{
|
|
||||||
assert( false );
|
|
||||||
}
|
|
||||||
|
|
||||||
void Cell::reset( color_type background_color )
|
void Cell::reset( color_type background_color )
|
||||||
{
|
{
|
||||||
@@ -358,12 +349,6 @@ Row::Row( const size_t s_width, const color_type background_color )
|
|||||||
: cells( s_width, Cell( background_color ) ), gen( get_gen() )
|
: cells( s_width, Cell( background_color ) ), gen( get_gen() )
|
||||||
{}
|
{}
|
||||||
|
|
||||||
Row::Row() /* default constructor required by C++11 STL */
|
|
||||||
: cells( 1, Cell() ), gen( get_gen() )
|
|
||||||
{
|
|
||||||
assert( false );
|
|
||||||
}
|
|
||||||
|
|
||||||
uint64_t Row::get_gen() const
|
uint64_t Row::get_gen() const
|
||||||
{
|
{
|
||||||
static uint64_t gen_counter = 0;
|
static uint64_t gen_counter = 0;
|
||||||
|
|||||||
@@ -93,9 +93,10 @@ namespace Terminal {
|
|||||||
unsigned int fallback : 1; /* first character is combining character */
|
unsigned int fallback : 1; /* first character is combining character */
|
||||||
unsigned int wrap : 1;
|
unsigned int wrap : 1;
|
||||||
|
|
||||||
|
private:
|
||||||
|
Cell();
|
||||||
public:
|
public:
|
||||||
Cell( color_type background_color );
|
Cell( color_type background_color );
|
||||||
Cell(); /* default constructor required by C++11 STL */
|
|
||||||
|
|
||||||
void reset( color_type background_color );
|
void reset( color_type background_color );
|
||||||
|
|
||||||
@@ -208,8 +209,10 @@ namespace Terminal {
|
|||||||
// in scrolling.
|
// in scrolling.
|
||||||
uint64_t gen;
|
uint64_t gen;
|
||||||
|
|
||||||
|
private:
|
||||||
|
Row();
|
||||||
|
public:
|
||||||
Row( const size_t s_width, const color_type background_color );
|
Row( const size_t s_width, const color_type background_color );
|
||||||
Row(); /* default constructor required by C++11 STL */
|
|
||||||
|
|
||||||
void insert_cell( int col, color_type background_color );
|
void insert_cell( int col, color_type background_color );
|
||||||
void delete_cell( int col, color_type background_color );
|
void delete_cell( int col, color_type background_color );
|
||||||
|
|||||||
Reference in New Issue
Block a user