From 6bcbf5fa671c5152b8b56a32abcbe212227f7f44 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 9 Apr 2022 10:19:31 -0700 Subject: [PATCH] =?utf8?q?gvedit:=20remove=20unnecessary=20casts=20when=20?= =?utf8?q?calling=20Graphviz=E2=80=99=20own=20functions?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- cmd/gvedit/csettings.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/cmd/gvedit/csettings.cpp b/cmd/gvedit/csettings.cpp index 212bf026a..e1f8746ab 100644 --- a/cmd/gvedit/csettings.cpp +++ b/cmd/gvedit/csettings.cpp @@ -341,7 +341,7 @@ bool CFrmSettings::createLayout() layout=WIDGET(QComboBox, cbLayout)->currentText(); - gvLayout(gvc, G, (char *)layout.toUtf8().constData()); /* library function */ + gvLayout(gvc, G, layout.toUtf8().constData()); /* library function */ return true; } @@ -365,8 +365,7 @@ void CFrmSettings::doPreview(QString fileName) if ((fileName.isNull()) || !(getActiveWindow()->loadPreview(fileName))) { //create preview QString prevFile(buildTempFile()); - gvRenderFilename(gvc, graph, "png", - (char *) prevFile.toUtf8().constData()); + gvRenderFilename(gvc, graph, "png", prevFile.toUtf8().constData()); getActiveWindow()->loadPreview(prevFile); } } @@ -406,9 +405,8 @@ bool CFrmSettings::renderLayout() } } - if (gvRenderFilename - (gvc, graph, (char *) sfx.toUtf8().constData(), - (char *) fileName.toUtf8().constData())) + if (gvRenderFilename(gvc, graph, sfx.toUtf8().constData(), + fileName.toUtf8().constData())) return false; doPreview(fileName); -- 2.40.0