1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 01:18:12 +00:00

HackStudio: Mark compilation-unit-only functions as static

This commit is contained in:
Ben Wiederhake 2020-08-28 10:21:05 +02:00 committed by Andreas Kling
parent 1c60ea235e
commit d063dc1e71
2 changed files with 4 additions and 4 deletions

View file

@ -133,7 +133,7 @@ void open_project(String);
void open_file(const String&); void open_file(const String&);
bool make_is_available(); bool make_is_available();
EditorWrapper& current_editor_wrapper() static EditorWrapper& current_editor_wrapper()
{ {
ASSERT(g_current_editor_wrapper); ASSERT(g_current_editor_wrapper);
return *g_current_editor_wrapper; return *g_current_editor_wrapper;
@ -156,7 +156,7 @@ static String get_full_path_of_serenity_source(const String& file)
return String::format("%s/%s", serenity_sources_base.string().characters(), relative_path_builder.to_string().characters()); return String::format("%s/%s", serenity_sources_base.string().characters(), relative_path_builder.to_string().characters());
} }
NonnullRefPtr<EditorWrapper> get_editor_of_file(const String& file) static NonnullRefPtr<EditorWrapper> get_editor_of_file(const String& file)
{ {
String file_path = file; String file_path = file;
@ -177,7 +177,7 @@ static String get_project_executable_path()
return g_project->path().substring(0, g_project->path().index_of(".").value()); return g_project->path().substring(0, g_project->path().index_of(".").value());
} }
int main_impl(int argc, char** argv) static int main_impl(int argc, char** argv)
{ {
if (pledge("stdio tty accept rpath cpath wpath shared_buffer proc exec unix fattr thread", nullptr) < 0) { if (pledge("stdio tty accept rpath cpath wpath shared_buffer proc exec unix fattr thread", nullptr) < 0) {
perror("pledge"); perror("pledge");

View file

@ -29,7 +29,7 @@
#include <LibCompress/Deflate.h> #include <LibCompress/Deflate.h>
#include <LibCompress/Zlib.h> #include <LibCompress/Zlib.h>
bool compare(ReadonlyBytes lhs, ReadonlyBytes rhs) static bool compare(ReadonlyBytes lhs, ReadonlyBytes rhs)
{ {
if (lhs.size() != rhs.size()) if (lhs.size() != rhs.size())
return false; return false;