mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-05 00:49:09 +02:00
Fix typos using https://github.com/crate-ci/typos
Changes were reviewed manually
This commit is contained in:
@ -26,7 +26,7 @@ Node & resolvePointer(Node & in, const std::string & pointer)
|
||||
size_t splitPos = pointer.find('/', 1);
|
||||
|
||||
std::string entry = pointer.substr(1, splitPos - 1);
|
||||
std::string remainer = splitPos == std::string::npos ? "" : pointer.substr(splitPos);
|
||||
std::string remainder = splitPos == std::string::npos ? "" : pointer.substr(splitPos);
|
||||
|
||||
if(in.getType() == VCMI_LIB_WRAP_NAMESPACE(JsonNode)::JsonType::DATA_VECTOR)
|
||||
{
|
||||
@ -39,9 +39,9 @@ Node & resolvePointer(Node & in, const std::string & pointer)
|
||||
auto index = boost::lexical_cast<size_t>(entry);
|
||||
|
||||
if(in.Vector().size() > index)
|
||||
return in.Vector()[index].resolvePointer(remainer);
|
||||
return in.Vector()[index].resolvePointer(remainder);
|
||||
}
|
||||
return in[entry].resolvePointer(remainer);
|
||||
return in[entry].resolvePointer(remainder);
|
||||
}
|
||||
|
||||
VCMI_LIB_NAMESPACE_BEGIN
|
||||
|
Reference in New Issue
Block a user