mirror of
https://github.com/hyprwm/hyprlang.git
synced 2024-11-17 02:25:59 +01:00
API: fix usage of stl in parseFile
This commit is contained in:
parent
25da0804b0
commit
26d2638f74
2 changed files with 3 additions and 3 deletions
|
@ -274,7 +274,7 @@ namespace Hyprlang {
|
||||||
Same as parse(), but parse a specific file, without any refreshing.
|
Same as parse(), but parse a specific file, without any refreshing.
|
||||||
recommended to use for stuff like source = path.conf
|
recommended to use for stuff like source = path.conf
|
||||||
*/
|
*/
|
||||||
CParseResult parseFile(std::string file);
|
CParseResult parseFile(const char* file);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
Parse a single "line", dynamically.
|
Parse a single "line", dynamically.
|
||||||
|
|
|
@ -506,12 +506,12 @@ CParseResult CConfig::parse() {
|
||||||
if (impl->path.empty())
|
if (impl->path.empty())
|
||||||
return CParseResult{};
|
return CParseResult{};
|
||||||
|
|
||||||
CParseResult fileParseResult = parseFile(impl->path);
|
CParseResult fileParseResult = parseFile(impl->path.c_str());
|
||||||
|
|
||||||
return fileParseResult;
|
return fileParseResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
CParseResult CConfig::parseFile(std::string file) {
|
CParseResult CConfig::parseFile(const char* file) {
|
||||||
CParseResult result;
|
CParseResult result;
|
||||||
|
|
||||||
std::ifstream iffile(file);
|
std::ifstream iffile(file);
|
||||||
|
|
Loading…
Reference in a new issue