@@ -114,7 +114,7 @@ public slots:
class ConfigItem : public QTreeWidgetItem {
typedef class QTreeWidgetItem Parent;
public:
- ConfigItem(ConfigList *parent, ConfigItem *after, struct menu *m)
+ ConfigItem(ConfigList *parent, ConfigItem *after, struct menu *m = nullptr)
: Parent(parent, after), nextItem(0), menu(m), goParent(false)
{
init();
@@ -124,11 +124,6 @@ class ConfigItem : public QTreeWidgetItem {
{
init();
}
- ConfigItem(ConfigList *parent, ConfigItem *after)
- : Parent(parent, after), nextItem(0), menu(0), goParent(true)
- {
- init();
- }
~ConfigItem(void);
void init(void);
void updateMenu(void);
No extra implementation is needed for this variant, provide a default argument to the matching sibling instead. Signed-off-by: Rolf Eike Beer <eb@emlix.com> --- scripts/kconfig/qconf.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)