1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 21:07:34 +00:00

Services: Mark compilation-unit-only functions as static

This enables a nice warning in case a function becomes dead code.
This commit is contained in:
Ben Wiederhake 2020-08-11 00:03:04 +02:00 committed by Andreas Kling
parent 76da9a4a7d
commit 3ec7b8b33c
2 changed files with 3 additions and 3 deletions

View file

@ -29,8 +29,8 @@
#include <LibGUI/BoxLayout.h> #include <LibGUI/BoxLayout.h>
#include <LibGUI/Button.h> #include <LibGUI/Button.h>
#include <LibGUI/Desktop.h> #include <LibGUI/Desktop.h>
#include <LibGUI/Label.h>
#include <LibGUI/ImageWidget.h> #include <LibGUI/ImageWidget.h>
#include <LibGUI/Label.h>
#include <LibGUI/Widget.h> #include <LibGUI/Widget.h>
#include <LibGfx/Bitmap.h> #include <LibGfx/Bitmap.h>
#include <LibGfx/Font.h> #include <LibGfx/Font.h>
@ -40,7 +40,7 @@ namespace NotificationServer {
static Vector<RefPtr<NotificationWindow>> s_windows; static Vector<RefPtr<NotificationWindow>> s_windows;
void update_notification_window_locations() static void update_notification_window_locations()
{ {
Gfx::IntRect last_window_rect; Gfx::IntRect last_window_rect;
for (auto& window : s_windows) { for (auto& window : s_windows) {

View file

@ -45,7 +45,7 @@ Compositor& Compositor::the()
return s_the; return s_the;
} }
WallpaperMode mode_to_enum(const String& name) static WallpaperMode mode_to_enum(const String& name)
{ {
if (name == "simple") if (name == "simple")
return WallpaperMode::Simple; return WallpaperMode::Simple;