mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 18:03:04 +01:00
Having duplicated names is not a good practice.
This commit is contained in:
parent
fb8afc1326
commit
201666c3a0
@ -225,18 +225,18 @@ void ConfigFile::loadConfig()
|
||||
|
||||
parameters.clear();
|
||||
|
||||
std::ifstream configFile(configFile.c_str());
|
||||
std::ifstream configFileStream(configFile.c_str());
|
||||
|
||||
if (!configFile)
|
||||
if (!configFileStream)
|
||||
{
|
||||
// config file does not exist, a warning message would be nice.
|
||||
return;
|
||||
}
|
||||
string inputLine;
|
||||
|
||||
while (!configFile.eof())
|
||||
while (!configFileStream.eof())
|
||||
{
|
||||
std::getline(configFile, inputLine);
|
||||
std::getline(configFileStream, inputLine);
|
||||
|
||||
stripComments(inputLine);
|
||||
stripLeadingWhiteSpace(inputLine);
|
||||
|
Loading…
Reference in New Issue
Block a user