mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 15:02:50 +02:00
fix compil use good oprator
Origin commit data
------------------
Branch: ni/coolstream
Commit: 4b7b43f028
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2015-12-15 (Tue, 15 Dec 2015)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -55,7 +55,7 @@ bool CConfigFile::loadConfig(const char * const filename, char _delimiter)
|
||||
{
|
||||
std::ifstream configFile(filename);
|
||||
|
||||
if (configFile != NULL)
|
||||
if (configFile.good())
|
||||
{
|
||||
std::string s;
|
||||
clear();
|
||||
@@ -97,7 +97,7 @@ bool CConfigFile::saveConfig(const char * const filename, char _delimiter)
|
||||
unlink(tmpname.c_str());
|
||||
std::fstream configFile(tmpname.c_str(), std::ios::out);
|
||||
|
||||
if (configFile != NULL)
|
||||
if (configFile.good())
|
||||
{
|
||||
std::cout << "[ConfigFile] saving " << filename << std::endl;
|
||||
for (ConfigDataMap::const_iterator it = configData.begin(); it != configData.end(); ++it)
|
||||
|
Reference in New Issue
Block a user