From: Matthew Fernandez Date: Sat, 9 Apr 2022 17:37:55 +0000 (-0700) Subject: gvedit: remove unnecessary 'QString' construction X-Git-Tag: 4.0.0~62^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cca7cf16c2e053383b21cf1e84f6d6aaa0751dde;p=graphviz gvedit: remove unnecessary 'QString' construction `QString::operator==` has an overload that takes `const char*`. --- diff --git a/cmd/gvedit/csettings.cpp b/cmd/gvedit/csettings.cpp index 3b0cee0c2..4d5ee765e 100644 --- a/cmd/gvedit/csettings.cpp +++ b/cmd/gvedit/csettings.cpp @@ -377,7 +377,7 @@ bool CFrmSettings::renderLayout() QString sfx = WIDGET(QComboBox, cbExtension)->currentText(); QString fileName(WIDGET(QLineEdit, leOutput)->text()); - if (fileName == QString("") || sfx == QString("NONE")) + if (fileName == "" || sfx == "NONE") doPreview(QString()); else { fileName = stripFileExtension(fileName);