diff options
author | Andreas Kling <kling@serenityos.org> | 2022-02-13 14:55:23 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-13 14:55:23 +0100 |
commit | 88e7d44cc41d9190bacdc23d782fca1d4c545fac (patch) | |
tree | 34f3947e10a2aa9dbbb58c7322baa39121ba1074 /Userland | |
parent | 92e0378dbd416633013377ace597e1c02ae6bef4 (diff) | |
download | serenity-88e7d44cc41d9190bacdc23d782fca1d4c545fac.zip |
LibJS+LibLine: Run clang-format
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/PrimitiveString.h | 3 | ||||
-rw-r--r-- | Userland/Libraries/LibLine/Editor.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/Bindings/IDLAbstractOperations.cpp | 1 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/PrimitiveString.h b/Userland/Libraries/LibJS/Runtime/PrimitiveString.h index e293c259be..5eaae45562 100644 --- a/Userland/Libraries/LibJS/Runtime/PrimitiveString.h +++ b/Userland/Libraries/LibJS/Runtime/PrimitiveString.h @@ -9,8 +9,8 @@ #include <AK/String.h> #include <LibJS/Forward.h> #include <LibJS/Heap/Cell.h> -#include <LibJS/Runtime/Value.h> #include <LibJS/Runtime/Utf16String.h> +#include <LibJS/Runtime/Value.h> namespace JS { @@ -31,6 +31,7 @@ public: bool has_utf16_string() const { return m_has_utf16_string; } Optional<Value> get(GlobalObject&, PropertyKey const&) const; + private: virtual const char* class_name() const override { return "PrimitiveString"; } diff --git a/Userland/Libraries/LibLine/Editor.cpp b/Userland/Libraries/LibLine/Editor.cpp index 0c87ec4234..02ae0f2496 100644 --- a/Userland/Libraries/LibLine/Editor.cpp +++ b/Userland/Libraries/LibLine/Editor.cpp @@ -228,7 +228,7 @@ void Editor::get_terminal_size() // terminal which is far from useful if (int fd = open("/dev/tty", O_RDONLY); fd != -1) { ioctl(fd, TIOCGWINSZ, &ws); - close (fd); + close(fd); } } m_num_columns = ws.ws_col; diff --git a/Userland/Libraries/LibWeb/Bindings/IDLAbstractOperations.cpp b/Userland/Libraries/LibWeb/Bindings/IDLAbstractOperations.cpp index 3ca450e9a6..5672d7b911 100644 --- a/Userland/Libraries/LibWeb/Bindings/IDLAbstractOperations.cpp +++ b/Userland/Libraries/LibWeb/Bindings/IDLAbstractOperations.cpp @@ -37,7 +37,6 @@ bool is_an_array_index(JS::PropertyKey const& property_name) return false; } - // 8. Return true. return true; } |