diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-06-22 16:26:04 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-06-22 16:26:04 +0200 |
commit | 61b4da447d4b8652be3c327eb233656fd235fece (patch) | |
tree | 3d0f1ba68a92240fd467e7676d6e057d9971134a | |
parent | 46a06c23e30668d90cb5efb44eab05bb4577d08d (diff) | |
download | serenity-61b4da447d4b8652be3c327eb233656fd235fece.zip |
PaintBrush: Fix compiler warnings.
-rw-r--r-- | Applications/PaintBrush/ColorDialog.cpp | 6 | ||||
-rw-r--r-- | Applications/PaintBrush/main.cpp | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Applications/PaintBrush/ColorDialog.cpp b/Applications/PaintBrush/ColorDialog.cpp index 6a0a2a5619..e1e7eb90ef 100644 --- a/Applications/PaintBrush/ColorDialog.cpp +++ b/Applications/PaintBrush/ColorDialog.cpp @@ -74,7 +74,7 @@ void ColorDialog::build() return spinbox; }; - auto* red_spin = make_spinbox(Red, m_color.red()); - auto* green_spin = make_spinbox(Green, m_color.green()); - auto* blue_spin = make_spinbox(Blue, m_color.blue()); + make_spinbox(Red, m_color.red()); + make_spinbox(Green, m_color.green()); + make_spinbox(Blue, m_color.blue()); } diff --git a/Applications/PaintBrush/main.cpp b/Applications/PaintBrush/main.cpp index 9e61c02ffa..6d885e6ad5 100644 --- a/Applications/PaintBrush/main.cpp +++ b/Applications/PaintBrush/main.cpp @@ -21,14 +21,14 @@ int main(int argc, char** argv) horizontal_container->set_layout(make<GBoxLayout>(Orientation::Horizontal)); horizontal_container->layout()->set_spacing(0); - auto* toolbox_widget = new ToolboxWidget(horizontal_container); + new ToolboxWidget(horizontal_container); auto* vertical_container = new GWidget(horizontal_container); vertical_container->set_layout(make<GBoxLayout>(Orientation::Vertical)); vertical_container->layout()->set_spacing(0); auto* paintable_widget = new PaintableWidget(vertical_container); - auto* palette_widget = new PaletteWidget(*paintable_widget, vertical_container); + new PaletteWidget(*paintable_widget, vertical_container); window->show(); |