This fixes the error: clang:optin.cplusplus.VirtualCall
This commit is contained in:
2026-02-14 14:32:40 +01:00
parent 235a0423c0
commit aa3fd7565b
2 changed files with 0 additions and 12 deletions
-5
View File
@@ -12,11 +12,6 @@ UI_item::UI_item(std::string type, QObject *parent)
{ {
} }
UI_item::UI_item(const json &j, QObject *parent) : QObject(parent)
{
from_json(j);
}
std::string UI_item::type() const std::string UI_item::type() const
{ {
return m_type; return m_type;
-7
View File
@@ -35,13 +35,6 @@ class UI_item : public QObject
* @param parent The parent QObject * @param parent The parent QObject
*/ */
explicit UI_item(std::string type, std::string text, Color fg_color, Color bg_color, QObject *parent = nullptr); explicit UI_item(std::string type, std::string text, Color fg_color, Color bg_color, QObject *parent = nullptr);
/**
* @brief Construct a new UI item object from JSON
*
* @param j The JSON object
* @param parent The parent QObject
*/
explicit UI_item(const json &j, QObject *parent = nullptr);
/** /**
* @brief Get the type of the UI item * @brief Get the type of the UI item