[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4931256.GXAFRqVoOG@devpool47.emlix.com>
Date: Thu, 24 Oct 2024 09:05:08 +0200
From: Rolf Eike Beer <eb@...ix.com>
To: Masahiro Yamada <masahiroy@...nel.org>
Cc: linux-kbuild@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 5/7] kconfig: qconf: use nullptr in C++11 code
On Mittwoch, 23. Oktober 2024 18:41:09 Mitteleuropäische Sommerzeit Masahiro
Yamada wrote:
> On Wed, Oct 23, 2024 at 3:35 PM Rolf Eike Beer <eb@...ix.com> wrote:
> > This is type safe as it can't be accidentially assigned to something not a
> > pointer.
>
> This is incomplete because there are more call sites that use
> 0 instead of nullptr.
>
> For example, you can replace nextItem(0) with nextItem(nullptr)
>
> Anyway, I do not need this patch for now because qconf is
> under refactoring, and I will remove a lot of code.
>
> Please come back with a more comprehensive patch
> some months later if you are still interested.
This was just some obvious cases I came accross, nothing complete. If you are
going to touch code anyway I personally would recommend using nullptr whenever
you touch that things anyway and maybe someone can clean up the rest later.
But this is nothing that does any change in behavior, so I'm fine with dropping
it.
Regards,
Eike
--
Rolf Eike Beer
emlix GmbH
Headquarters: Berliner Str. 12, 37073 Göttingen, Germany
Phone +49 (0)551 30664-0, e-mail info@...ix.com
District Court of Göttingen, Registry Number HR B 3160
Managing Directors: Heike Jordan, Dr. Uwe Kracke
VAT ID No. DE 205 198 055
Office Berlin: Panoramastr. 1, 10178 Berlin, Germany
Office Bonn: Bachstr. 6, 53115 Bonn, Germany
http://www.emlix.com
emlix - your embedded Linux partner
Download attachment "signature.asc" of type "application/pgp-signature" (314 bytes)
Powered by blists - more mailing lists