Skip to content

Commit

Permalink
Fixed missing initializers.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Ebbeke committed Jul 6, 2024
1 parent 1f8f9f5 commit 36fbcce
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions nui/include/nui/window.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ namespace Nui
#ifdef NUI_BACKEND
struct CustomSchemeRequest
{
std::string scheme;
std::function<std::string const&()> getContent;
std::unordered_multimap<std::string, std::string> headers;
std::string uri;
std::string method;
std::string scheme{};
std::function<std::string const&()> getContent{};
std::unordered_multimap<std::string, std::string> headers{};
std::string uri{};
std::string method{};

std::optional<Url> parseUrl() const;

Expand All @@ -72,9 +72,9 @@ namespace Nui
{
int statusCode;
/// WINDOWS ONLY
std::string reasonPhrase;
std::unordered_multimap<std::string, std::string> headers;
std::string body;
std::string reasonPhrase{};
std::unordered_multimap<std::string, std::string> headers{};
std::string body{};
};

struct CustomScheme
Expand Down
4 changes: 2 additions & 2 deletions nui/src/nui/backend/window_impl_linux.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace Nui::Impl::Linux

void gcResponses()
{
std::lock_guard<std::mutex> asyncResponsesGuard{this->asyncResponsesGuard};
std::lock_guard<std::mutex> lock{this->asyncResponsesGuard};
std::vector<int> removals{};
for (auto it = asyncResponses.begin(); it != asyncResponses.end(); ++it)
{
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 36fbcce

Please sign in to comment.