From patchwork Thu Dec 19 07:22:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rolf Eike Beer X-Patchwork-Id: 13914551 Received: from mx1.emlix.com (mx1.emlix.com [178.63.209.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AC6FC7082A; Thu, 19 Dec 2024 07:23:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.63.209.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734593006; cv=none; b=moA8u/+PT5t99LOvEJ5/UTrM73blvbs2khwOIVK7NjqpLBe69DY98RpD/SN/le6ohT/AM8Hqnd/JGvusYzwJfV0LxW9L6GfUlVZbcW+GfFRT/BOzLN+/2+HXtRJ+jNV/SlLNaN3S+ZVJMEN4bkz8kdcC4UWOxieCN28y9pX3Nag= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734593006; c=relaxed/simple; bh=flm2R4EFoZlf5JkycqEWSAxk2tzk5iCAxcrfO4Os0A4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=nae+VcU9RkxdB5shhw+KvWRMiNe/dhggEh3+3oWCRMwtVXCxRcjrNriXBfFGUcDXfUZLQ5PgEFzzvOYuD3+8IO1PHENqXrJ07gwfZQt4LVujfkp6Iz6e9VRi+uMr/XqtFz8pCgLyg3WT+9RMXuwLmCHfsyJPRrIdxmdGttQt36Y= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=emlix.com; spf=pass smtp.mailfrom=emlix.com; arc=none smtp.client-ip=178.63.209.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=emlix.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=emlix.com Received: from mailer.emlix.com (p5098be52.dip0.t-ipconnect.de [80.152.190.82]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.emlix.com (Postfix) with ESMTPS id 6DBF35FA2D; Thu, 19 Dec 2024 08:23:11 +0100 (CET) From: Rolf Eike Beer To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] kconfig: qconf: remove overloaded constructor Date: Thu, 19 Dec 2024 08:22:03 +0100 Message-ID: <2207289.irdbgypaU6@devpool47.emlix.com> Organization: emlix GmbH In-Reply-To: <5843611.DvuYhMxLoT@devpool47.emlix.com> References: <5843611.DvuYhMxLoT@devpool47.emlix.com> Precedence: bulk X-Mailing-List: linux-kbuild@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 No extra implementation is needed for this variant, provide a default argument to the matching sibling instead. Signed-off-by: Rolf Eike Beer --- scripts/kconfig/qconf.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/scripts/kconfig/qconf.h b/scripts/kconfig/qconf.h index 62ab3286d04f..1c90fec4c2da 100644 --- a/scripts/kconfig/qconf.h +++ b/scripts/kconfig/qconf.h @@ -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);