]> www.infradead.org Git - users/dwmw2/linux.git/commit
kconfig: qconf: use preferred form of QString API
authorRolf Eike Beer <eb@emlix.com>
Thu, 19 Dec 2024 07:20:34 +0000 (08:20 +0100)
committerMasahiro Yamada <masahiroy@kernel.org>
Fri, 10 Jan 2025 14:01:22 +0000 (23:01 +0900)
commitad2091dee019a68145610081a75fae3b90f0c44d
tree9f0a9b94474f2a8be09745025ce7bd346f3e7dee
parent41a00051283e301f7e0009626ddf591542e30161
kconfig: qconf: use preferred form of QString API

A QString constructed from a character literal of length 0, i.e. "", is not
"null" for historical reasons. This does not matter here so use the preferred
method isEmpty() instead.

Also directly construct empty QString objects instead of passing in an empty
character literal that has to be parsed into an empty object first.

Signed-off-by: Rolf Eike Beer <eb@emlix.com>
Link: https://doc.qt.io/qt-6/qstring.html#distinction-between-null-and-empty-strings
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/qconf.cc