From: Matthew Fernandez Date: Sat, 9 Apr 2022 17:39:13 +0000 (-0700) Subject: gvedit: avoid the need to cast arguments to 'errorPipe' X-Git-Tag: 4.0.0~62^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d6858d7f21ad58c3bb2a0907373dcab41dfaed1b;p=graphviz gvedit: avoid the need to cast arguments to 'errorPipe' --- diff --git a/cmd/gvedit/csettings.cpp b/cmd/gvedit/csettings.cpp index 4d5ee765e..1d215fe84 100644 --- a/cmd/gvedit/csettings.cpp +++ b/cmd/gvedit/csettings.cpp @@ -401,7 +401,7 @@ bool CFrmSettings::renderLayout() QString msg ("Output written to "); msg.append(fileName); msg.append("\n"); - errorPipe((char *) msg.toLatin1().constData()); + errorPipe(msg.toLatin1().data()); } } diff --git a/cmd/gvedit/mainwindow.cpp b/cmd/gvedit/mainwindow.cpp index 782e484b5..f4f1bd4c9 100644 --- a/cmd/gvedit/mainwindow.cpp +++ b/cmd/gvedit/mainwindow.cpp @@ -270,7 +270,7 @@ void CMainWindow::setChild () msg.append("working on "); msg.append(activeMdiChild()->currentFile()); msg.append("\n"); - errorPipe((char *) msg.toLatin1().constData()); + errorPipe(msg.toLatin1().data()); prevChild = activeMdiChild(); } }