Fix 7439: GUI: Remove value "constant" from minsize attribute items list (#1020)

The list of items for the minsize attributes in the LibraryEditor
contains the illegal value "constant" which is removed by this patch.
This commit is contained in:
Sebastian 2018-01-05 11:10:21 +01:00 committed by Daniel Marjamäki
parent a95108ebe3
commit ba0ea2e8b1
2 changed files with 1 additions and 11 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");
QStringList items;
items << "None" << "argvalue" << "constant" << "mul" << "sizeof" << "strlen";
items << "None" << "argvalue" << "mul" << "sizeof" << "strlen";
ui->minsize1type->clear();
ui->minsize1type->addItems(items);

View File

@ -114,11 +114,6 @@
<string>argvalue</string>
</property>
</item>
<item>
<property name="text">
<string>constant</string>
</property>
</item>
<item>
<property name="text">
<string>mul</string>
@ -224,11 +219,6 @@
<string>argvalue</string>
</property>
</item>
<item>
<property name="text">
<string>constant</string>
</property>
</item>
<item>
<property name="text">
<string>mul</string>