Skip to content

Commit 9264115

Browse files
committed
kconfig: qconf: omit parent to QHBoxLayout()
Instead of passing 0 (i.e. nullptr), leave it empty. Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 740fdef commit 9264115

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/kconfig/qconf.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1297,7 +1297,8 @@ ConfigSearchWindow::ConfigSearchWindow(ConfigMainWindow *parent)
12971297
QVBoxLayout* layout1 = new QVBoxLayout(this);
12981298
layout1->setContentsMargins(11, 11, 11, 11);
12991299
layout1->setSpacing(6);
1300-
QHBoxLayout* layout2 = new QHBoxLayout(0);
1300+
1301+
QHBoxLayout* layout2 = new QHBoxLayout();
13011302
layout2->setContentsMargins(0, 0, 0, 0);
13021303
layout2->setSpacing(6);
13031304
layout2->addWidget(new QLabel("Find:", this));

0 commit comments

Comments
 (0)