mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-29 05:17:58 +03:00
Apply clang-format to code base
This commit is contained in:
parent
f37d0be806
commit
ddb0522bbf
2199 changed files with 118692 additions and 114392 deletions
|
@ -10,13 +10,14 @@ void Fallback::validate(boost::any& v, std::vector<std::string> const& tokens, F
|
|||
v = boost::any(FallbackMap());
|
||||
}
|
||||
|
||||
FallbackMap *map = boost::any_cast<FallbackMap>(&v);
|
||||
FallbackMap* map = boost::any_cast<FallbackMap>(&v);
|
||||
|
||||
for (const auto& token : tokens)
|
||||
{
|
||||
size_t sep = token.find(',');
|
||||
if (sep < 1 || sep == token.length() - 1 || sep == std::string::npos)
|
||||
throw boost::program_options::validation_error(boost::program_options::validation_error::invalid_option_value);
|
||||
throw boost::program_options::validation_error(
|
||||
boost::program_options::validation_error::invalid_option_value);
|
||||
|
||||
std::string key(token.substr(0, sep));
|
||||
std::string value(token.substr(sep + 1));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue