mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
Removes JSON constructor from UI elements
This fixes the error: clang:optin.cplusplus.VirtualCall When virtual methods are called during construction and destruction the polymorphism is restricted to the class that’s being constructed or destructed because the more derived contexts are either not yet initialized or already destructed.
This commit is contained in:
@@ -10,11 +10,6 @@ UI_plot::UI_plot(std::string text, std::string x_label, std::string y_label, QOb
|
||||
set_text(text);
|
||||
}
|
||||
|
||||
UI_plot::UI_plot(const json &j, QObject *parent) : UI_item{UI_PLOT_TYPE, parent}
|
||||
{
|
||||
from_json(j);
|
||||
}
|
||||
|
||||
void UI_plot::set_x_label(std::string name)
|
||||
{
|
||||
m_x_label = name;
|
||||
|
||||
Reference in New Issue
Block a user