diff --git a/src/ui/RequestBuilder.cpp b/src/ui/RequestBuilder.cpp index 7fb1ef0..97eb4a2 100644 --- a/src/ui/RequestBuilder.cpp +++ b/src/ui/RequestBuilder.cpp @@ -1,6 +1,4 @@ -#include - #include "RequestBuilder.h" class KeyValueWidget : public QWidget { diff --git a/src/url-source.cpp b/src/url-source.cpp index 3d71dc9..46fb247 100644 --- a/src/url-source.cpp +++ b/src/url-source.cpp @@ -27,6 +27,7 @@ with this program. If not, see #include #include #include +#include struct url_source_data { obs_source_t *source; @@ -127,8 +128,8 @@ static void *url_source_create(obs_data_t *settings, obs_source_t *source) usd->request_data.output_type = "json"; usd->request_data.output_json_path = "fact"; // serialize request data - std::string serialized_request_data = serialize_request_data(&(usd->request_data)); - // Save on settings + serialized_request_data = serialize_request_data(&(usd->request_data)); + // Save new data on settings obs_data_set_string(settings, "request_data", serialized_request_data.c_str()); } else { // Unserialize request data