From 4137cab13e56cc9e186f7850e59beac780206918 Mon Sep 17 00:00:00 2001 From: Nicolas Morais Date: Tue, 2 Apr 2024 10:52:37 -0300 Subject: [PATCH] Examples: changes to static_cast in Qt5 client example As suggested by @dantti --- examples/client/qt5client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/client/qt5client.cpp b/examples/client/qt5client.cpp index 688d8af4..ca67fd6a 100644 --- a/examples/client/qt5client.cpp +++ b/examples/client/qt5client.cpp @@ -47,7 +47,7 @@ class VncViewer : public QWidget void VncViewer::finishedFramebufferUpdateStatic(rfbClient *cl) { - VncViewer *ptr = (VncViewer *) rfbClientGetClientData(cl, nullptr); + VncViewer *ptr = static_cast(rfbClientGetClientData(cl, nullptr)); ptr->finishedFramebufferUpdate(cl); }