From 1396ce8a9b85cd08de5273febca2113d8b2e1dc2 Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Tue, 11 Aug 2020 00:09:59 +0200 Subject: LibGUI: Mark compilation-unit-only functions as static This enables a nice warning in case a function becomes dead code. --- Libraries/LibGUI/TextEditor.cpp | 2 +- Libraries/LibGUI/WindowServerConnection.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Libraries/LibGUI') diff --git a/Libraries/LibGUI/TextEditor.cpp b/Libraries/LibGUI/TextEditor.cpp index e434d5b769..e354171ee0 100644 --- a/Libraries/LibGUI/TextEditor.cpp +++ b/Libraries/LibGUI/TextEditor.cpp @@ -633,7 +633,7 @@ void TextEditor::move_selected_lines_down() update(); } -int strcmp_utf32(const u32* s1, const u32* s2, size_t n) +static int strcmp_utf32(const u32* s1, const u32* s2, size_t n) { while (n-- > 0) { if (*s1++ != *s2++) diff --git a/Libraries/LibGUI/WindowServerConnection.cpp b/Libraries/LibGUI/WindowServerConnection.cpp index 35eae09015..231760798f 100644 --- a/Libraries/LibGUI/WindowServerConnection.cpp +++ b/Libraries/LibGUI/WindowServerConnection.cpp @@ -204,7 +204,7 @@ void WindowServerConnection::handle(const Messages::WindowClient::KeyUp& message Core::EventLoop::current().post_event(*window, move(key_event)); } -MouseButton to_gmousebutton(u32 button) +static MouseButton to_gmousebutton(u32 button) { switch (button) { case 0: -- cgit v1.2.3