Added missing things
This commit is contained in:
parent
6931d80e04
commit
77514c4d13
4
main.cpp
4
main.cpp
@ -19,7 +19,7 @@ using std::string;
|
|||||||
using std::vector;
|
using std::vector;
|
||||||
using nlohmann::json;
|
using nlohmann::json;
|
||||||
|
|
||||||
void init_builders(map<string, Widget*(const json&)>& widget_builders)
|
void init_builders(map<string, Widget*(*)(const json&)>& widget_builders)
|
||||||
{
|
{
|
||||||
// widget_builders["name"] = &WidgetName::builder;
|
// widget_builders["name"] = &WidgetName::builder;
|
||||||
}
|
}
|
||||||
@ -73,6 +73,8 @@ int main(int argc, char **argv)
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
init_builders(widget_builders);
|
||||||
|
|
||||||
// Add Widgets From JSON
|
// Add Widgets From JSON
|
||||||
if (cfg.contains("widgets") && cfg["widgets"].is_array())
|
if (cfg.contains("widgets") && cfg["widgets"].is_array())
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user