From cca7cf16c2e053383b21cf1e84f6d6aaa0751dde Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 9 Apr 2022 10:37:55 -0700 Subject: [PATCH] gvedit: remove unnecessary 'QString' construction `QString::operator==` has an overload that takes `const char*`. --- cmd/gvedit/csettings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.40.0