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