FIX: delete constructors

This commit is contained in:
Robin Dietzel 2022-12-09 16:34:03 +01:00
parent c3596588b1
commit 582d07e53d

View File

@ -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);