Try to make Travis happy

This commit is contained in:
Daniel Marjamäki 2020-04-27 19:51:46 +02:00
parent c19a9c2ad9
commit 30e6214f1c
3 changed files with 10 additions and 10 deletions

View File

@ -10,22 +10,22 @@ static QString formatFunctionName(QString f)
return f;
}
FunctionContractDialog::FunctionContractDialog(QWidget *parent, QString name, QString expects) :
FunctionContractDialog::FunctionContractDialog(QWidget *parent, const QString &name, const QString &expects) :
QDialog(parent),
ui(new Ui::FunctionContractDialog)
mUi(new Ui::FunctionContractDialog)
{
ui->setupUi(this);
ui->functionName->setText(formatFunctionName(name));
ui->expects->setPlainText(expects);
mUi->setupUi(this);
mUi->functionName->setText(formatFunctionName(name));
mUi->expects->setPlainText(expects);
}
FunctionContractDialog::~FunctionContractDialog()
{
delete ui;
delete mUi;
}
QString FunctionContractDialog::getExpects() const
{
return ui->expects->toPlainText();
return mUi->expects->toPlainText();
}

View File

@ -11,11 +11,11 @@ class FunctionContractDialog : public QDialog {
Q_OBJECT
public:
explicit FunctionContractDialog(QWidget *parent, QString name, QString expects);
explicit FunctionContractDialog(QWidget *parent, const QString &name, const QString &expects);
~FunctionContractDialog();
QString getExpects() const;
private:
Ui::FunctionContractDialog *ui;
Ui::FunctionContractDialog *mUi;
};
#endif // FUNCTIONCONTRACTDIALOG_H

View File

@ -201,7 +201,7 @@ public:
mMaxCtuDepth = maxCtuDepth;
}
const std::map<std::string,std::string> getFunctionContracts() const {
const std::map<std::string,std::string>& getFunctionContracts() const {
return mFunctionContracts;
}