mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:37:42 +00:00
Meta+LibC through LibHTTP: Make clang-format-10 clean
Why break at LibHTTP? Because "Meta+Libraries" would be insanely large, and breaking between LibHTTP and LibJS makes the commits roughly evenly large.
This commit is contained in:
parent
64cc3f51d0
commit
ede5dbd7b3
58 changed files with 87 additions and 89 deletions
|
@ -29,8 +29,8 @@
|
|||
#include <LibGUI/AboutDialog.h>
|
||||
#include <LibGUI/BoxLayout.h>
|
||||
#include <LibGUI/Button.h>
|
||||
#include <LibGUI/Label.h>
|
||||
#include <LibGUI/ImageWidget.h>
|
||||
#include <LibGUI/Label.h>
|
||||
#include <LibGUI/Widget.h>
|
||||
#include <LibGfx/Font.h>
|
||||
|
||||
|
|
|
@ -34,8 +34,8 @@ namespace GUI {
|
|||
|
||||
class ActionGroup : public Weakable<ActionGroup> {
|
||||
public:
|
||||
ActionGroup() {}
|
||||
~ActionGroup() {}
|
||||
ActionGroup() { }
|
||||
~ActionGroup() { }
|
||||
|
||||
void add_action(Action&);
|
||||
void remove_action(Action&);
|
||||
|
|
|
@ -34,8 +34,9 @@ namespace GUI {
|
|||
|
||||
class BoxLayout : public Layout {
|
||||
C_OBJECT(BoxLayout);
|
||||
|
||||
public:
|
||||
virtual ~BoxLayout() override {}
|
||||
virtual ~BoxLayout() override { }
|
||||
|
||||
Gfx::Orientation orientation() const { return m_orientation; }
|
||||
|
||||
|
@ -50,22 +51,24 @@ private:
|
|||
|
||||
class VerticalBoxLayout final : public BoxLayout {
|
||||
C_OBJECT(VerticalBoxLayout);
|
||||
|
||||
public:
|
||||
explicit VerticalBoxLayout()
|
||||
: BoxLayout(Gfx::Orientation::Vertical)
|
||||
{
|
||||
}
|
||||
virtual ~VerticalBoxLayout() override {}
|
||||
virtual ~VerticalBoxLayout() override { }
|
||||
};
|
||||
|
||||
class HorizontalBoxLayout final : public BoxLayout {
|
||||
C_OBJECT(HorizontalBoxLayout);
|
||||
|
||||
public:
|
||||
explicit HorizontalBoxLayout()
|
||||
: BoxLayout(Gfx::Orientation::Horizontal)
|
||||
{
|
||||
}
|
||||
virtual ~HorizontalBoxLayout() override {}
|
||||
virtual ~HorizontalBoxLayout() override { }
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -28,10 +28,10 @@
|
|||
|
||||
#include <AK/Function.h>
|
||||
#include <AK/String.h>
|
||||
#include <LibGUI/AbstractButton.h>
|
||||
#include <LibGfx/Bitmap.h>
|
||||
#include <LibGfx/StylePainter.h>
|
||||
#include <LibGfx/TextAlignment.h>
|
||||
#include <LibGUI/AbstractButton.h>
|
||||
|
||||
namespace GUI {
|
||||
|
||||
|
|
|
@ -128,7 +128,6 @@ public:
|
|||
private:
|
||||
CustomColorWidget(Color);
|
||||
|
||||
|
||||
RefPtr<ColorField> m_color_field;
|
||||
RefPtr<ColorSlider> m_color_slider;
|
||||
};
|
||||
|
|
|
@ -127,7 +127,7 @@ ComboBox::ComboBox()
|
|||
m_list_view->set_activates_on_selection(false);
|
||||
close();
|
||||
};
|
||||
|
||||
|
||||
m_list_view->on_escape_pressed = [this] {
|
||||
close();
|
||||
};
|
||||
|
|
|
@ -34,13 +34,13 @@ class Command {
|
|||
public:
|
||||
virtual ~Command();
|
||||
|
||||
virtual void undo() {}
|
||||
virtual void redo() {}
|
||||
virtual void undo() { }
|
||||
virtual void redo() { }
|
||||
|
||||
String action_text() const { return m_action_text; }
|
||||
|
||||
protected:
|
||||
Command() {}
|
||||
Command() { }
|
||||
void set_action_text(const String& text) { m_action_text = text; }
|
||||
|
||||
private:
|
||||
|
|
|
@ -32,7 +32,7 @@ namespace GUI {
|
|||
|
||||
class CppSyntaxHighlighter final : public SyntaxHighlighter {
|
||||
public:
|
||||
CppSyntaxHighlighter() {}
|
||||
CppSyntaxHighlighter() { }
|
||||
virtual ~CppSyntaxHighlighter() override;
|
||||
|
||||
virtual bool is_identifier(void*) const override;
|
||||
|
|
|
@ -26,8 +26,8 @@
|
|||
|
||||
#include <AK/QuickSort.h>
|
||||
#include <LibCore/DirIterator.h>
|
||||
#include <LibGfx/Font.h>
|
||||
#include <LibGUI/FontDatabase.h>
|
||||
#include <LibGfx/Font.h>
|
||||
#include <dirent.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -26,8 +26,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <LibGfx/StylePainter.h>
|
||||
#include <LibGUI/Widget.h>
|
||||
#include <LibGfx/StylePainter.h>
|
||||
|
||||
namespace GUI {
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ namespace GUI {
|
|||
|
||||
class IniSyntaxHighlighter final : public SyntaxHighlighter {
|
||||
public:
|
||||
IniSyntaxHighlighter() {}
|
||||
IniSyntaxHighlighter() { }
|
||||
virtual ~IniSyntaxHighlighter() override;
|
||||
|
||||
virtual bool is_identifier(void*) const override;
|
||||
|
|
|
@ -36,13 +36,13 @@ namespace GUI {
|
|||
class IconImpl : public RefCounted<IconImpl> {
|
||||
public:
|
||||
static NonnullRefPtr<IconImpl> create() { return adopt(*new IconImpl); }
|
||||
~IconImpl() {}
|
||||
~IconImpl() { }
|
||||
|
||||
const Gfx::Bitmap* bitmap_for_size(int) const;
|
||||
void set_bitmap_for_size(int, RefPtr<Gfx::Bitmap>&&);
|
||||
|
||||
private:
|
||||
IconImpl() {}
|
||||
IconImpl() { }
|
||||
HashMap<int, RefPtr<Gfx::Bitmap>> m_bitmaps;
|
||||
};
|
||||
|
||||
|
@ -53,7 +53,7 @@ public:
|
|||
explicit Icon(RefPtr<Gfx::Bitmap>&&, RefPtr<Gfx::Bitmap>&&);
|
||||
explicit Icon(const IconImpl&);
|
||||
Icon(const Icon&);
|
||||
~Icon() {}
|
||||
~Icon() { }
|
||||
|
||||
static Icon default_icon(const StringView&);
|
||||
|
||||
|
|
|
@ -26,8 +26,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <LibGfx/TextAlignment.h>
|
||||
#include <LibGUI/Frame.h>
|
||||
#include <LibGfx/TextAlignment.h>
|
||||
|
||||
namespace GUI {
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ namespace GUI {
|
|||
|
||||
class Margins {
|
||||
public:
|
||||
Margins() {}
|
||||
Margins() { }
|
||||
Margins(int left, int top, int right, int bottom)
|
||||
: m_left(left)
|
||||
, m_top(top)
|
||||
|
@ -38,7 +38,7 @@ public:
|
|||
, m_bottom(bottom)
|
||||
{
|
||||
}
|
||||
~Margins() {}
|
||||
~Margins() { }
|
||||
|
||||
bool is_null() const { return !m_left && !m_top && !m_right && !m_bottom; }
|
||||
|
||||
|
|
|
@ -26,8 +26,8 @@
|
|||
|
||||
#include <LibGUI/BoxLayout.h>
|
||||
#include <LibGUI/Button.h>
|
||||
#include <LibGUI/Label.h>
|
||||
#include <LibGUI/ImageWidget.h>
|
||||
#include <LibGUI/Label.h>
|
||||
#include <LibGUI/MessageBox.h>
|
||||
#include <LibGfx/Font.h>
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -28,10 +28,10 @@
|
|||
|
||||
#include <AK/Badge.h>
|
||||
#include <AK/HashTable.h>
|
||||
#include <AK/Noncopyable.h>
|
||||
#include <AK/TemporaryChange.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <LibGUI/ModelIndex.h>
|
||||
#include <AK/Noncopyable.h>
|
||||
|
||||
namespace GUI {
|
||||
|
||||
|
|
|
@ -45,9 +45,8 @@ private:
|
|||
NotificationServerConnection()
|
||||
: IPC::ServerConnection<NotificationClientEndpoint, NotificationServerEndpoint>(*this, "/tmp/portal/notify")
|
||||
{
|
||||
|
||||
}
|
||||
virtual void handle(const Messages::NotificationClient::Dummy&) override {}
|
||||
virtual void handle(const Messages::NotificationClient::Dummy&) override { }
|
||||
};
|
||||
|
||||
Notification::Notification()
|
||||
|
|
|
@ -26,8 +26,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <LibGUI/Dialog.h>
|
||||
#include <LibCore/Timer.h>
|
||||
#include <LibGUI/Dialog.h>
|
||||
|
||||
namespace GUI {
|
||||
|
||||
|
|
|
@ -24,11 +24,11 @@
|
|||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <LibGfx/CharacterBitmap.h>
|
||||
#include <LibGfx/Palette.h>
|
||||
#include <LibGUI/Painter.h>
|
||||
#include <LibGUI/ResizeCorner.h>
|
||||
#include <LibGUI/Window.h>
|
||||
#include <LibGfx/CharacterBitmap.h>
|
||||
#include <LibGfx/Palette.h>
|
||||
|
||||
namespace GUI {
|
||||
|
||||
|
|
|
@ -193,7 +193,7 @@ int ScrollBar::unclamped_scrubber_size() const
|
|||
{
|
||||
int pixel_range = length(orientation()) - button_size() * 2;
|
||||
int value_range = m_max - m_min;
|
||||
|
||||
|
||||
int scrubber_size = 0;
|
||||
if (value_range > 0) {
|
||||
// Scrubber size should be proportional to the visible portion
|
||||
|
|
|
@ -82,7 +82,7 @@ protected:
|
|||
virtual void custom_layout() override;
|
||||
virtual void resize_event(ResizeEvent&) override;
|
||||
virtual void mousewheel_event(MouseEvent&) override;
|
||||
virtual void did_scroll() {}
|
||||
virtual void did_scroll() { }
|
||||
void set_content_size(const Gfx::IntSize&);
|
||||
void set_size_occupied_by_fixed_elements(const Gfx::IntSize&);
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ namespace GUI {
|
|||
|
||||
class Shortcut {
|
||||
public:
|
||||
Shortcut() {}
|
||||
Shortcut() { }
|
||||
Shortcut(u8 modifiers, KeyCode key)
|
||||
: m_modifiers(modifiers)
|
||||
, m_key(key)
|
||||
|
|
|
@ -102,7 +102,7 @@ private:
|
|||
class VerticalSlider final : public Slider {
|
||||
C_OBJECT(VerticalSlider)
|
||||
public:
|
||||
virtual ~VerticalSlider() override {}
|
||||
virtual ~VerticalSlider() override { }
|
||||
|
||||
private:
|
||||
VerticalSlider()
|
||||
|
@ -114,7 +114,7 @@ private:
|
|||
class HorizontalSlider final : public Slider {
|
||||
C_OBJECT(HorizontalSlider)
|
||||
public:
|
||||
virtual ~HorizontalSlider() override {}
|
||||
virtual ~HorizontalSlider() override { }
|
||||
|
||||
private:
|
||||
HorizontalSlider()
|
||||
|
|
|
@ -64,7 +64,7 @@ public:
|
|||
void cursor_did_change();
|
||||
|
||||
protected:
|
||||
SyntaxHighlighter() {}
|
||||
SyntaxHighlighter() { }
|
||||
|
||||
WeakPtr<TextEditor> m_editor;
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ void TextBox::add_current_text_to_history()
|
|||
{
|
||||
if (!m_history_enabled)
|
||||
return;
|
||||
|
||||
|
||||
auto input = text();
|
||||
if (m_history.is_empty() || m_history.last() != input)
|
||||
add_input_to_history(input);
|
||||
|
|
|
@ -181,7 +181,7 @@ protected:
|
|||
virtual void context_menu_event(ContextMenuEvent&) override;
|
||||
virtual void resize_event(ResizeEvent&) override;
|
||||
virtual void theme_change_event(ThemeChangeEvent&) override;
|
||||
virtual void cursor_did_change() {}
|
||||
virtual void cursor_did_change() { }
|
||||
Gfx::IntRect ruler_content_rect(size_t line) const;
|
||||
|
||||
TextPosition text_position_at(const Gfx::IntPoint&) const;
|
||||
|
|
|
@ -33,7 +33,7 @@ namespace GUI {
|
|||
|
||||
class TextPosition {
|
||||
public:
|
||||
TextPosition() {}
|
||||
TextPosition() { }
|
||||
TextPosition(size_t line, size_t column)
|
||||
: m_line(line)
|
||||
, m_column(column)
|
||||
|
|
|
@ -33,7 +33,7 @@ namespace GUI {
|
|||
|
||||
class TextRange {
|
||||
public:
|
||||
TextRange() {}
|
||||
TextRange() { }
|
||||
TextRange(const TextPosition& start, const TextPosition& end)
|
||||
: m_start(start)
|
||||
, m_end(end)
|
||||
|
|
|
@ -24,13 +24,13 @@
|
|||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <LibGfx/Palette.h>
|
||||
#include <LibGUI/Action.h>
|
||||
#include <LibGUI/ActionGroup.h>
|
||||
#include <LibGUI/BoxLayout.h>
|
||||
#include <LibGUI/Button.h>
|
||||
#include <LibGUI/Painter.h>
|
||||
#include <LibGUI/ToolBar.h>
|
||||
#include <LibGfx/Palette.h>
|
||||
|
||||
namespace GUI {
|
||||
|
||||
|
@ -86,7 +86,7 @@ public:
|
|||
set_size_policy(SizePolicy::Fixed, SizePolicy::Fixed);
|
||||
set_preferred_size(8, 18);
|
||||
}
|
||||
virtual ~SeparatorWidget() override {}
|
||||
virtual ~SeparatorWidget() override { }
|
||||
|
||||
virtual void paint_event(PaintEvent& event) override
|
||||
{
|
||||
|
@ -111,10 +111,7 @@ void ToolBar::paint_event(PaintEvent& event)
|
|||
Painter painter(*this);
|
||||
painter.add_clip_rect(event.rect());
|
||||
|
||||
//if (m_has_frame)
|
||||
// Gfx::StylePainter::paint_surface(painter, rect(), palette(), x() != 0, y() != 0);
|
||||
// else
|
||||
painter.fill_rect(event.rect(), palette().button());
|
||||
painter.fill_rect(event.rect(), palette().button());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -27,9 +27,9 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/String.h>
|
||||
#include <LibGfx/Font.h>
|
||||
#include <LibGfx/Bitmap.h>
|
||||
#include <LibGUI/Icon.h>
|
||||
#include <LibGfx/Bitmap.h>
|
||||
#include <LibGfx/Font.h>
|
||||
|
||||
namespace GUI {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue