Code clean, and code style error fix.

This commit is contained in:
Krad
2022-04-22 17:16:45 +08:00
parent 7cee364fc3
commit 27487fdf3c
21 changed files with 198 additions and 240 deletions

View File

@@ -24,7 +24,7 @@ bool SelectDialog::updateReferenceData() {
return true;
}
void SelectDialog::setValues(QStringList dates) {
void SelectDialog::setValues(const QStringList& dates) {
box->setItems(dates);
}

View File

@@ -12,7 +12,7 @@ class SelectDialog :public GUIFormBaseDialog{
public:
explicit SelectDialog(QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
~SelectDialog() override;
void setValues(QStringList values);
void setValues(const QStringList& values);
QString getSelectedValue();
void setSelectedValue(const QString& val);
protected: