aboutsummaryrefslogtreecommitdiff
path: root/src/AsyncEventLoop.cpp
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-03-22 17:17:15 +0530
committerAkshay Nair <phenax5@gmail.com>2025-03-22 18:26:37 +0530
commit0d728071e3287a71ce7928640e63c19f4d0ab00f (patch)
treed6e9fc90331e690dbc439e7ab8b9983df2d796a6 /src/AsyncEventLoop.cpp
parentf09f1aa704f06472ec134b40e2f69bf3279c3f06 (diff)
downloadnull-browser-0d728071e3287a71ce7928640e63c19f4d0ab00f.tar.gz
null-browser-0d728071e3287a71ce7928640e63c19f4d0ab00f.zip
Build fixes + formatting
Diffstat (limited to '')
-rw-r--r--src/AsyncEventLoop.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/AsyncEventLoop.cpp b/src/AsyncEventLoop.cpp
index 360a45e..31be89c 100644
--- a/src/AsyncEventLoop.cpp
+++ b/src/AsyncEventLoop.cpp
@@ -1,7 +1,9 @@
#include <QtCore>
#include <functional>
#include <mutex>
+#include <queue>
#include <thread>
+#include <utility>
#include <uv.h>
#include "AsyncEventLoop.hpp"
@@ -63,7 +65,7 @@ AsyncEventLoop::~AsyncEventLoop() {
uv_stop(loop);
// Close all handles
- AsyncEventLoop::closeHandle((uv_handle_t *)&asyncHandle);
+ AsyncEventLoop::closeHandle(reinterpret_cast<uv_handle_t *>(&asyncHandle));
uv_walk(loop, AsyncEventLoop::closeHandle, nullptr);
while (uv_run(loop, UV_RUN_ONCE) != 0)
;
@@ -87,7 +89,7 @@ void AsyncEventLoop::asyncHandleCallback(uv_async_t *handle) {
runtime->processTasks();
}
-void AsyncEventLoop::closeHandle(uv_handle_t *handle, void *arg) {
+void AsyncEventLoop::closeHandle(uv_handle_t *handle, void *) {
if (!uv_is_closing(handle)) {
uv_close(handle, [](uv_handle_t *h) { h->data = nullptr; });
}