8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 00:03:03 +01:00

Having duplicated names is not a good practice.

This commit is contained in:
dimitr 2002-11-16 10:56:49 +00:00
parent fb8afc1326
commit 201666c3a0

View File

@ -225,18 +225,18 @@ void ConfigFile::loadConfig()
parameters.clear(); 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. // config file does not exist, a warning message would be nice.
return; return;
} }
string inputLine; string inputLine;
while (!configFile.eof()) while (!configFileStream.eof())
{ {
std::getline(configFile, inputLine); std::getline(configFileStream, inputLine);
stripComments(inputLine); stripComments(inputLine);
stripLeadingWhiteSpace(inputLine); stripLeadingWhiteSpace(inputLine);