diff options
| author | Scott Mansell <phiren@gmail.com> | 2023-02-10 21:21:15 +1300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-10 21:21:15 +1300 |
| commit | dad7a32a35d0d28946c16e740692d014a858d2ea (patch) | |
| tree | 1422619a72cdcdf51e1d1e60509859f664d2d762 /Source/Core/DolphinQt/Debugger/CodeWidget.cpp | |
| parent | a88e5ef3907e79ed20ab67e4df45c36e6ab2b909 (diff) | |
| parent | 3024ca2146cfdae2e7fb231e8d180dfc81e1a74e (diff) | |
Merge pull request #11534 from Pokechu22/warning-fixes-feb-2023
Resolve various compiler warnings
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/CodeWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/CodeWidget.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Core/DolphinQt/Debugger/CodeWidget.cpp b/Source/Core/DolphinQt/Debugger/CodeWidget.cpp index 6bcb5396f8..5f7229ce65 100644 --- a/Source/Core/DolphinQt/Debugger/CodeWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/CodeWidget.cpp @@ -110,14 +110,14 @@ void CodeWidget::CreateWidgets() auto add_search_line_edit = [this](const QString& name, QListWidget* list_widget) { auto* widget = new QWidget; - auto* layout = new QGridLayout; + auto* line_layout = new QGridLayout; auto* label = new QLabel(name); auto* search_line_edit = new QLineEdit; - widget->setLayout(layout); - layout->addWidget(label, 0, 0); - layout->addWidget(search_line_edit, 0, 1); - layout->addWidget(list_widget, 1, 0, -1, -1); + widget->setLayout(line_layout); + line_layout->addWidget(label, 0, 0); + line_layout->addWidget(search_line_edit, 0, 1); + line_layout->addWidget(list_widget, 1, 0, -1, -1); m_box_splitter->addWidget(widget); return search_line_edit; }; |
