FIX: delete constructors
This commit is contained in:
parent
c3596588b1
commit
582d07e53d
@ -14,10 +14,6 @@ namespace floatpump{
|
||||
private:
|
||||
LCD_I2C_Driver(I2C_HandleTypeDef &handle, uint16_t displayAddr);
|
||||
|
||||
// Disable following constructors
|
||||
LCD_I2C_Driver(LCD_I2C_Driver const&);
|
||||
void operator=(LCD_I2C_Driver const&);
|
||||
|
||||
public:
|
||||
static LCD_I2C_Driver& getInstance(I2C_HandleTypeDef &handle, uint16_t displayAddr)
|
||||
{
|
||||
@ -26,9 +22,9 @@ namespace floatpump{
|
||||
}
|
||||
|
||||
public:
|
||||
//TODO: fix this
|
||||
//LCD_I2C_Driver(LCD_I2C_Driver const&) = delete;
|
||||
//void operator=(LCD_I2C_Driver const&) = delete;
|
||||
// Explicitly delete these constructors
|
||||
LCD_I2C_Driver(LCD_I2C_Driver const&) = delete;
|
||||
void operator=(LCD_I2C_Driver const&) = delete;
|
||||
|
||||
// Functions sending text
|
||||
void LCDSendCString(char *str);
|
||||
|
Loading…
Reference in New Issue
Block a user