Skip to content

Commit

Permalink
Some cleanups in ecal_config_initializer.
Browse files Browse the repository at this point in the history
  • Loading branch information
Peguen committed Nov 28, 2024
1 parent bebf5b6 commit dd83f43
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions ecal/core/src/config/ecal_config_initializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,16 +210,16 @@ namespace
std::vector<std::string> ConvertArgcArgvToVector(int argc_, char** argv_)
{
std::vector<std::string> arguments;
if (argc_ > 0 && argv_ != nullptr)
if (argv_ == nullptr) return arguments;

for (size_t i = 0; i < static_cast<size_t>(argc_); ++i)
{
for (size_t i = 0; i < static_cast<size_t>(argc_); ++i)
if (argv_[i] != nullptr)
{
if (argv_[i] != nullptr)
{
arguments.emplace_back(argv_[i]);
}
arguments.emplace_back(argv_[i]);
}
}

return arguments;
}
}
Expand Down Expand Up @@ -271,9 +271,7 @@ namespace eCAL
InitFromFile(g_default_ini_file);
}

Configuration::Configuration()
{
}
Configuration::Configuration() = default;

std::string Configuration::GetYamlFilePath()
{
Expand Down

0 comments on commit dd83f43

Please sign in to comment.