summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCore/ConfigFile.h
diff options
context:
space:
mode:
authornetworkException <git@nwex.de>2021-08-21 16:33:54 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-22 01:32:25 +0200
commitacde7d12b0d2870feba3ebaaaf2ef99ac6fb41b3 (patch)
tree9ea1d89f621446ea24b9ee34ca93c73acef225a0 /Userland/Libraries/LibCore/ConfigFile.h
parent938051feb8d9340657251082f3fd4abffd57b813 (diff)
downloadserenity-acde7d12b0d2870feba3ebaaaf2ef99ac6fb41b3.zip
Everywhere: Rename get in ConfigFile::get_for_{lib,app,system} to open
This patch brings the ConfigFile helpers for opening lib, app and system configs more inline with the regular ConfigFile::open functions.
Diffstat (limited to 'Userland/Libraries/LibCore/ConfigFile.h')
-rw-r--r--Userland/Libraries/LibCore/ConfigFile.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibCore/ConfigFile.h b/Userland/Libraries/LibCore/ConfigFile.h
index aa0528f2f2..d2262cbb56 100644
--- a/Userland/Libraries/LibCore/ConfigFile.h
+++ b/Userland/Libraries/LibCore/ConfigFile.h
@@ -24,9 +24,9 @@ public:
No,
};
- static NonnullRefPtr<ConfigFile> get_for_lib(String const& lib_name, AllowWriting = AllowWriting::No);
- static NonnullRefPtr<ConfigFile> get_for_app(String const& app_name, AllowWriting = AllowWriting::No);
- static NonnullRefPtr<ConfigFile> get_for_system(String const& app_name, AllowWriting = AllowWriting::No);
+ static NonnullRefPtr<ConfigFile> open_for_lib(String const& lib_name, AllowWriting = AllowWriting::No);
+ static NonnullRefPtr<ConfigFile> open_for_app(String const& app_name, AllowWriting = AllowWriting::No);
+ static NonnullRefPtr<ConfigFile> open_for_system(String const& app_name, AllowWriting = AllowWriting::No);
static NonnullRefPtr<ConfigFile> open(String const& filename, AllowWriting = AllowWriting::No);
static NonnullRefPtr<ConfigFile> open(String const& filename, int fd);
~ConfigFile();