mirror of
https://github.com/RGBCube/serenity
synced 2025-07-22 14:17:40 +00:00
AK: Rename RetainPtr => RefPtr and Retained => NonnullRefPtr.
This commit is contained in:
parent
77b9fa89dd
commit
90b1354688
188 changed files with 562 additions and 562 deletions
|
@ -6,7 +6,7 @@
|
|||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
Retained<CConfigFile> CConfigFile::get_for_app(const String& app_name)
|
||||
NonnullRefPtr<CConfigFile> CConfigFile::get_for_app(const String& app_name)
|
||||
{
|
||||
String home_path = get_current_user_home_path();
|
||||
if (home_path == "/")
|
||||
|
@ -15,7 +15,7 @@ Retained<CConfigFile> CConfigFile::get_for_app(const String& app_name)
|
|||
return adopt(*new CConfigFile(path));
|
||||
}
|
||||
|
||||
Retained<CConfigFile> CConfigFile::get_for_system(const String& app_name)
|
||||
NonnullRefPtr<CConfigFile> CConfigFile::get_for_system(const String& app_name)
|
||||
{
|
||||
auto path = String::format("/etc/%s.ini", app_name.characters());
|
||||
return adopt(*new CConfigFile(path));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue