summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-02-06 13:58:29 +0000
committerTim Flynn <trflynn89@pm.me>2022-02-16 19:49:41 -0500
commitb90dc408bdd249ca04f10cf0d288e6f8549e9832 (patch)
tree9f43e8037a02ca4d529906fbdac4f061b570c71a /AK
parent8260135d4d6cc50d15b459feb6010a989fcb7f5b (diff)
downloadserenity-b90dc408bdd249ca04f10cf0d288e6f8549e9832.zip
LibCore: Create ConfigFiles with an already-open File
This moves the fallible action of opening the file, from the constructor, into the factory methods which can propagate any errors. The wrinkle here is that failure to open a ConfigFile in read-only mode is allowed (and expected, since the file may not exist), and treated as if an empty file was successfully opened.
Diffstat (limited to 'AK')
0 files changed, 0 insertions, 0 deletions