From b87ec5ad687f6ea84ef6cc82c84f9100c6529430 Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Fri, 15 Oct 2021 15:28:26 +0800 Subject: [PATCH] watch3: fix layout warning (#22566) old-commit-hash: 3de2cd897b4b4d4e4ccc7c4718d8d161ecee808b --- selfdrive/ui/watch3.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/ui/watch3.cc b/selfdrive/ui/watch3.cc index 4c2b3d1a18..e5e2864ccb 100644 --- a/selfdrive/ui/watch3.cc +++ b/selfdrive/ui/watch3.cc @@ -19,7 +19,7 @@ int main(int argc, char *argv[]) { layout->setSpacing(0); layout->addWidget(new CameraViewWidget(VISION_STREAM_RGB_BACK, false)); - QHBoxLayout *hlayout = new QHBoxLayout(&w); + QHBoxLayout *hlayout = new QHBoxLayout(); layout->addLayout(hlayout); hlayout->addWidget(new CameraViewWidget(VISION_STREAM_RGB_FRONT, false)); hlayout->addWidget(new CameraViewWidget(VISION_STREAM_RGB_WIDE, false));