Warnings removed

This commit is contained in:
Bertrand Songis
2020-10-05 09:13:09 +02:00
parent 4a4a548a9f
commit f410d5c74b
4 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ class ModelBitmapWidget: public Widget
{
}
virtual ~ModelBitmapWidget()
~ModelBitmapWidget() override
{
delete buffer;
}
+1 -1
View File
@@ -89,7 +89,7 @@ const ZoneOption OutputsWidget::options[] = {
{ STR_FIRST_CHANNEL, ZoneOption::Integer, OPTION_VALUE_UNSIGNED(1), OPTION_VALUE_UNSIGNED(1), OPTION_VALUE_UNSIGNED(32) },
{ STR_FILL_BACKGROUND, ZoneOption::Bool, OPTION_VALUE_BOOL(false) },
{ STR_BG_COLOR, ZoneOption::Color, OPTION_VALUE_UNSIGNED(LIGHTGREY) },
{ NULL, ZoneOption::Bool }
{ nullptr, ZoneOption::Bool }
};
+3 -3
View File
@@ -80,7 +80,7 @@ class WidgetsContainer: public WidgetsContainerInterface
}
}
virtual void createWidget(unsigned int index, const WidgetFactory * factory)
void createWidget(unsigned int index, const WidgetFactory * factory) override
{
if (widgets) {
memset(persistentData->zones[index].widgetName, 0, sizeof(persistentData->zones[index].widgetName));
@@ -123,9 +123,9 @@ class WidgetsContainer: public WidgetsContainerInterface
return &persistentData->options[index];
}
virtual unsigned int getZonesCount() const = 0;
unsigned int getZonesCount() const override = 0;
virtual Zone getZone(unsigned int index) const = 0;
Zone getZone(unsigned int index) const override = 0;
virtual void refresh()
{