summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2020-08-11 00:09:59 +0200
committerAndreas Kling <kling@serenityos.org>2020-08-12 20:40:59 +0200
commit1396ce8a9b85cd08de5273febca2113d8b2e1dc2 (patch)
tree3d477c03451d9716cc42a4a897b8c813b6f447a0 /Libraries/LibGUI
parent7cb2b344c03cea5eab46f6344f57a723e7e532fc (diff)
downloadserenity-1396ce8a9b85cd08de5273febca2113d8b2e1dc2.zip
LibGUI: Mark compilation-unit-only functions as static
This enables a nice warning in case a function becomes dead code.
Diffstat (limited to 'Libraries/LibGUI')
-rw-r--r--Libraries/LibGUI/TextEditor.cpp2
-rw-r--r--Libraries/LibGUI/WindowServerConnection.cpp2
2 files changed, 2 insertions, 2 deletions
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: