mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 21:23:03 +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();
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user