diff mbox series

[30/34] kernelshark: Use static_cast instead of C cast in KsMainWindow

Message ID 20240114171723.14092-31-dev@benjarobin.fr (mailing list archive)
State Accepted
Commit 9c3db37735545105e057f9d3c10f0e62d1092f88
Headers show
Series Fix kernelshark issues introduced by the migration to Qt6 | expand

Commit Message

Benjamin ROBIN Jan. 14, 2024, 5:17 p.m. UTC
Signed-off-by: Benjamin ROBIN <dev@benjarobin.fr>
---
 src/KsMainWindow.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/src/KsMainWindow.cpp b/src/KsMainWindow.cpp
index 72ad371..72f4280 100644
--- a/src/KsMainWindow.cpp
+++ b/src/KsMainWindow.cpp
@@ -1546,7 +1546,7 @@  void KsMainWindow::_captureFinished(int ret, QProcess::ExitStatus st)
 
 void KsMainWindow::_captureError(QProcess::ProcessError error)
 {
-	QProcess *capture = (QProcess *)sender();
+	QProcess *capture = static_cast<QProcess*>(sender());
 	_captureErrorMessage(capture);
 }