Fixed #7903 (Library Editor doesn't allow to select 'sizeof' as type of Min size of buffer)

This commit is contained in:
Daniel Marjamäki 2017-06-25 11:55:50 +02:00
parent f4dba4ad3d
commit 839cb2bdaa
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ LibraryEditArgDialog::LibraryEditArgDialog(QWidget *parent, const CppcheckLibrar
ui->minsize2arg2->setEnabled(arg.minsizes.count() >= 2 && arg.minsizes[1].type == "mul"); ui->minsize2arg2->setEnabled(arg.minsizes.count() >= 2 && arg.minsizes[1].type == "mul");
QStringList items; QStringList items;
items << "None" << "argvalue" << "constant" << "mul" << "strlen"; items << "None" << "argvalue" << "constant" << "mul" << "sizeof" << "strlen";
ui->minsize1type->clear(); ui->minsize1type->clear();
ui->minsize1type->addItems(items); ui->minsize1type->addItems(items);