mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Try Clazy fix-its
clazy is a compiler plugin which allows clang to understand Qt semantics. You get more than 50 Qt related compiler warnings, ranging from unneeded memory allocations to misusage of API, including fix-its for automatic refactoring. https://invent.kde.org/sdk/clazy
This commit is contained in:
@@ -236,7 +236,7 @@ void AboutQETDialog::addAuthor(QLabel *label, const QString &name, const QString
|
||||
QString author_template = "<span style=\"text-decoration: underline;\">%1</span> : %2 <<a href=\"mailto:%3\">%3</a>>‎<br/><br/>";
|
||||
|
||||
// Add the function of the person
|
||||
new_text += author_template.arg(work).arg(name).arg(email);
|
||||
new_text += author_template.arg(work, name, email);
|
||||
label->setText(new_text);
|
||||
}
|
||||
|
||||
@@ -253,7 +253,7 @@ void AboutQETDialog::addLibrary(QLabel *label, const QString &name, const QStrin
|
||||
QString Library_template = "<span style=\"text-decoration: underline;\">%1</span> : <<a href=\"%3\">%3</a>>‎<br/><br/>";
|
||||
|
||||
// Add the function of the person
|
||||
new_text += Library_template.arg(name).arg(link);
|
||||
new_text += Library_template.arg(name, link);
|
||||
label->setText(new_text);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user