Gui: modernize C++: return braced init list

This commit is contained in:
wmayer
2023-08-17 15:12:18 +02:00
committed by wwmayer
parent b2672abc06
commit fa8978ce99
58 changed files with 286 additions and 276 deletions

View File

@@ -131,7 +131,7 @@ QColor SyntaxHighlighter::color(const QString& type)
else if (type == QLatin1String("Python error"))
return d->cError;
else
return QColor(); // not found
return {}; // not found
}
QColor SyntaxHighlighter::colorByType(SyntaxHighlighter::TColor type)
@@ -159,7 +159,7 @@ QColor SyntaxHighlighter::colorByType(SyntaxHighlighter::TColor type)
else if (type == SyntaxHighlighter::Error)
return d->cError;
else
return QColor(); // not found
return {}; // not found
}
void SyntaxHighlighter::colorChanged(const QString& type, const QColor& col)