Skip to content

Commit

Permalink
Examples: changes to static_cast in Qt5 client example
Browse files Browse the repository at this point in the history
As suggested by @dantti
  • Loading branch information
nicmorais committed Apr 2, 2024
1 parent ddd71aa commit 4137cab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/client/qt5client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class VncViewer : public QWidget

void VncViewer::finishedFramebufferUpdateStatic(rfbClient *cl)
{
VncViewer *ptr = (VncViewer *) rfbClientGetClientData(cl, nullptr);
VncViewer *ptr = static_cast<VncViewer*>(rfbClientGetClientData(cl, nullptr));
ptr->finishedFramebufferUpdate(cl);
}

Expand Down

0 comments on commit 4137cab

Please sign in to comment.