diff options
author | 2016-03-06 18:02:37 +1100 | |
---|---|---|
committer | 2016-03-06 21:49:56 +1100 | |
commit | 73b44c94291c4d086477167a76fd7db239936c3b (patch) | |
tree | 9af214e443878f4b1e6452d63393ca9f9f8a0884 /src/lib/util/options.cpp | |
parent | 00941faaab99d937a32bce4d225ec56951d21020 (diff) |
Turn core_file into a proper class that gets cleaned up safely using unique_ptr
Subverted somewhat by chd_file class
Diffstat (limited to 'src/lib/util/options.cpp')
-rw-r--r-- | src/lib/util/options.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/util/options.cpp b/src/lib/util/options.cpp index 56bad147bcb..9890ae46115 100644 --- a/src/lib/util/options.cpp +++ b/src/lib/util/options.cpp @@ -400,11 +400,11 @@ bool core_options::parse_command_line(int argc, char **argv, int priority, std:: // an INI file //------------------------------------------------- -bool core_options::parse_ini_file(core_file &inifile, int priority, int ignore_priority, std::string &error_string) +bool core_options::parse_ini_file(util::core_file &inifile, int priority, int ignore_priority, std::string &error_string) { // loop over lines in the file char buffer[4096]; - while (core_fgets(buffer, ARRAY_LENGTH(buffer), &inifile) != nullptr) + while (inifile.gets(buffer, ARRAY_LENGTH(buffer)) != nullptr) { // find the extent of the name char *optionname; |