]> granicus.if.org Git - graphviz/commitdiff
gvedit: avoid the need to cast arguments to 'errorPipe'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 9 Apr 2022 17:39:13 +0000 (10:39 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 28 Apr 2022 01:54:13 +0000 (18:54 -0700)
cmd/gvedit/csettings.cpp
cmd/gvedit/mainwindow.cpp

index 4d5ee765eb3bbdf84183fc419c8e7dced3965cc1..1d215fe841c0baea2d6ae3c471a9660eb2e68028 100644 (file)
@@ -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());
            }
        }
 
index 782e484b5977faf1ccd9ff4498f3d9cdd54d1665..f4f1bd4c9d03a5e05f45ea249690f78b4fa77722 100644 (file)
@@ -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();
     }
 }