Commit fb57d5e6 authored by Łukasz Matysiak's avatar Łukasz Matysiak
Browse files

Use bool operator instead of is_open

parent 2be7abb5
......@@ -36,9 +36,9 @@ Config::Config(std::string configPath, std::string type)
bool Config::readConfigFile(std::string configPath)
std::ifstream file(configPath.c_str());
std::ifstream file(configPath);
if (!file.is_open())
if (!file)
return false;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment