mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
libconfigfile: formatting code using astyle
Origin commit data
------------------
Branch: ni/coolstream
Commit: 5c7a5ddc5a
Author: vanhofen <vanhofen@gmx.de>
Date: 2023-01-31 (Tue, 31 Jan 2023)
Origin message was:
------------------
- libconfigfile: formatting code using astyle
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -117,8 +117,7 @@ bool CConfigFile::saveConfig(const char * const filename, char _delimiter)
|
||||
}
|
||||
else
|
||||
{
|
||||
std::cerr << "[ConfigFile] Unable to open file " << tmpname << " for writing: "
|
||||
<< strerror(errno) << std::endl;
|
||||
std::cerr << "[ConfigFile] Unable to open file " << tmpname << " for writing: " << strerror(errno) << std::endl;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -174,11 +173,13 @@ bool CConfigFile::getBool(const std::string & key, const bool defaultVal)
|
||||
{
|
||||
if (configData.find(key) == configData.end())
|
||||
{
|
||||
if (saveDefaults) {
|
||||
if (saveDefaults)
|
||||
{
|
||||
unknownKeyQueryedFlag = true;
|
||||
storeBool(key, defaultVal);
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
return defaultVal;
|
||||
}
|
||||
}
|
||||
@@ -195,11 +196,13 @@ int32_t CConfigFile::getInt32(const std::string & key, const int32_t defaultVal)
|
||||
{
|
||||
if (configData.find(key) == configData.end())
|
||||
{
|
||||
if (saveDefaults) {
|
||||
if (saveDefaults)
|
||||
{
|
||||
unknownKeyQueryedFlag = true;
|
||||
storeInt32(key, defaultVal);
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
return defaultVal;
|
||||
}
|
||||
}
|
||||
@@ -220,11 +223,13 @@ int64_t CConfigFile::getInt64(const std::string & key, const int64_t defaultVal)
|
||||
{
|
||||
if (configData.find(key) == configData.end())
|
||||
{
|
||||
if (saveDefaults) {
|
||||
if (saveDefaults)
|
||||
{
|
||||
unknownKeyQueryedFlag = true;
|
||||
storeInt64(key, defaultVal);
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
return defaultVal;
|
||||
}
|
||||
}
|
||||
@@ -245,11 +250,13 @@ std::string CConfigFile::getString(const std::string & key, const std::string &
|
||||
{
|
||||
if (configData.find(key) == configData.end())
|
||||
{
|
||||
if (saveDefaults) {
|
||||
if (saveDefaults)
|
||||
{
|
||||
unknownKeyQueryedFlag = true;
|
||||
storeString(key, defaultVal);
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
return defaultVal;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user