summaryrefslogtreecommitdiff
path: root/Demos
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-06-07 11:50:05 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-06-07 11:50:05 +0200
commit2c70ae041896600f9517a1d9f0bab50bb2dbdcf2 (patch)
tree94e69af1c179be16d0a36070dcbdb9641bc09f63 /Demos
parent3ca332af42ef09b494cd4edf245872441ea54905 (diff)
downloadserenity-2c70ae041896600f9517a1d9f0bab50bb2dbdcf2.zip
Demos: Run clang-format on everything.
Diffstat (limited to 'Demos')
-rw-r--r--Demos/HelloWorld/main.cpp10
-rw-r--r--Demos/PaintTest/main.cpp11
-rw-r--r--Demos/RetroFetch/main.cpp5
-rw-r--r--Demos/WidgetGallery/main.cpp16
4 files changed, 22 insertions, 20 deletions
diff --git a/Demos/HelloWorld/main.cpp b/Demos/HelloWorld/main.cpp
index a66b3490e5..3598868b8f 100644
--- a/Demos/HelloWorld/main.cpp
+++ b/Demos/HelloWorld/main.cpp
@@ -1,9 +1,9 @@
#include <LibGUI/GApplication.h>
-#include <LibGUI/GWindow.h>
-#include <LibGUI/GWidget.h>
-#include <LibGUI/GLabel.h>
-#include <LibGUI/GButton.h>
#include <LibGUI/GBoxLayout.h>
+#include <LibGUI/GButton.h>
+#include <LibGUI/GLabel.h>
+#include <LibGUI/GWidget.h>
+#include <LibGUI/GWindow.h>
int main(int argc, char** argv)
{
@@ -27,7 +27,7 @@ int main(int argc, char** argv)
button->set_text("Good-bye");
button->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
button->set_preferred_size({ 0, 20 });
- button->on_click = [&] (GButton&) {
+ button->on_click = [&](GButton&) {
app.quit();
};
diff --git a/Demos/PaintTest/main.cpp b/Demos/PaintTest/main.cpp
index 2174afe9c4..4a2f9fd860 100644
--- a/Demos/PaintTest/main.cpp
+++ b/Demos/PaintTest/main.cpp
@@ -1,13 +1,16 @@
#include <LibGUI/GApplication.h>
-#include <LibGUI/GWindow.h>
-#include <LibGUI/GWidget.h>
#include <LibGUI/GPainter.h>
+#include <LibGUI/GWidget.h>
+#include <LibGUI/GWindow.h>
#include <SharedGraphics/PNGLoader.h>
class TestWidget final : public GWidget {
public:
- TestWidget(GWidget* parent) : GWidget(parent) { }
- virtual ~TestWidget() override { }
+ TestWidget(GWidget* parent)
+ : GWidget(parent)
+ {
+ }
+ virtual ~TestWidget() override {}
void set_bitmap(RetainPtr<GraphicsBitmap>&& bitmap)
{
diff --git a/Demos/RetroFetch/main.cpp b/Demos/RetroFetch/main.cpp
index 1b0abfdf08..4e465d67b5 100644
--- a/Demos/RetroFetch/main.cpp
+++ b/Demos/RetroFetch/main.cpp
@@ -1,8 +1,8 @@
+#include <AK/Assertions.h>
+#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
-#include <fcntl.h>
-#include <AK/Assertions.h>
static void moveto(int row, int column)
{
@@ -68,4 +68,3 @@ int main()
printf("\033[u\n");
return 0;
}
-
diff --git a/Demos/WidgetGallery/main.cpp b/Demos/WidgetGallery/main.cpp
index 81f219b51e..a97d08899f 100644
--- a/Demos/WidgetGallery/main.cpp
+++ b/Demos/WidgetGallery/main.cpp
@@ -1,18 +1,18 @@
+#include <LibCore/CTimer.h>
#include <LibGUI/GApplication.h>
-#include <LibGUI/GWindow.h>
-#include <LibGUI/GWidget.h>
-#include <LibGUI/GLabel.h>
-#include <LibGUI/GButton.h>
#include <LibGUI/GBoxLayout.h>
+#include <LibGUI/GButton.h>
#include <LibGUI/GCheckBox.h>
-#include <LibGUI/GRadioButton.h>
-#include <LibGUI/GTextBox.h>
+#include <LibGUI/GGroupBox.h>
+#include <LibGUI/GLabel.h>
#include <LibGUI/GProgressBar.h>
+#include <LibGUI/GRadioButton.h>
#include <LibGUI/GScrollBar.h>
#include <LibGUI/GSlider.h>
#include <LibGUI/GSpinBox.h>
-#include <LibGUI/GGroupBox.h>
-#include <LibCore/CTimer.h>
+#include <LibGUI/GTextBox.h>
+#include <LibGUI/GWidget.h>
+#include <LibGUI/GWindow.h>
int main(int argc, char** argv)
{