diff --git a/nui/include/nui/window.hpp b/nui/include/nui/window.hpp index 886bd12..6e72ef9 100644 --- a/nui/include/nui/window.hpp +++ b/nui/include/nui/window.hpp @@ -56,11 +56,11 @@ namespace Nui #ifdef NUI_BACKEND struct CustomSchemeRequest { - std::string scheme; - std::function getContent; - std::unordered_multimap headers; - std::string uri; - std::string method; + std::string scheme{}; + std::function getContent{}; + std::unordered_multimap headers{}; + std::string uri{}; + std::string method{}; std::optional parseUrl() const; @@ -72,9 +72,9 @@ namespace Nui { int statusCode; /// WINDOWS ONLY - std::string reasonPhrase; - std::unordered_multimap headers; - std::string body; + std::string reasonPhrase{}; + std::unordered_multimap headers{}; + std::string body{}; }; struct CustomScheme diff --git a/nui/src/nui/backend/window_impl_linux.ipp b/nui/src/nui/backend/window_impl_linux.ipp index c87654b..c067832 100644 --- a/nui/src/nui/backend/window_impl_linux.ipp +++ b/nui/src/nui/backend/window_impl_linux.ipp @@ -20,7 +20,7 @@ namespace Nui::Impl::Linux void gcResponses() { - std::lock_guard asyncResponsesGuard{this->asyncResponsesGuard}; + std::lock_guard lock{this->asyncResponsesGuard}; std::vector removals{}; for (auto it = asyncResponses.begin(); it != asyncResponses.end(); ++it) { @@ -184,7 +184,7 @@ extern "C" { webkit_uri_scheme_request_finish_with_response(request, asyncResponse.response.get()); } - void uriSchemeDestroyNotify(void* userData) + void uriSchemeDestroyNotify(void*) { // Useless, because called when everything is already destroyed }