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:
parent
a95108ebe3
commit
ba0ea2e8b1
|
@ -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" << "sizeof" << "strlen";
|
items << "None" << "argvalue" << "mul" << "sizeof" << "strlen";
|
||||||
|
|
||||||
ui->minsize1type->clear();
|
ui->minsize1type->clear();
|
||||||
ui->minsize1type->addItems(items);
|
ui->minsize1type->addItems(items);
|
||||||
|
|
|
@ -114,11 +114,6 @@
|
||||||
<string>argvalue</string>
|
<string>argvalue</string>
|
||||||
</property>
|
</property>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string>constant</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>mul</string>
|
<string>mul</string>
|
||||||
|
@ -224,11 +219,6 @@
|
||||||
<string>argvalue</string>
|
<string>argvalue</string>
|
||||||
</property>
|
</property>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string>constant</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>mul</string>
|
<string>mul</string>
|
||||||
|
|
Loading…
Reference in New Issue