mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-28 11:39:42 +00:00
Warning that doesn't fire with MSVC 2022
Hopefully this fixes it. I've only tried MSVC 2022 locally, so can't verify this fix.
This commit is contained in:
parent
1aff88e6a3
commit
7c85755950
1 changed files with 3 additions and 3 deletions
|
@ -148,11 +148,11 @@ namespace MWDialogue
|
|||
// resolve overlapping keywords
|
||||
while (!matches.empty())
|
||||
{
|
||||
int longestKeywordSize = 0;
|
||||
std::size_t longestKeywordSize = 0;
|
||||
typename std::vector<Match>::iterator longestKeyword = matches.begin();
|
||||
for (typename std::vector<Match>::iterator it = matches.begin(); it != matches.end(); ++it)
|
||||
{
|
||||
int size = it->mEnd - it->mBeg;
|
||||
std::size_t size = it->mEnd - it->mBeg;
|
||||
if (size > longestKeywordSize)
|
||||
{
|
||||
longestKeywordSize = size;
|
||||
|
@ -199,7 +199,7 @@ namespace MWDialogue
|
|||
|
||||
void seed_impl(std::string_view keyword, value_t value, size_t depth, Entry& entry)
|
||||
{
|
||||
int ch = Misc::StringUtils::toLower(keyword.at(depth));
|
||||
auto ch = Misc::StringUtils::toLower(keyword.at(depth));
|
||||
|
||||
typename Entry::childen_t::iterator j = entry.mChildren.find(ch);
|
||||
|
||||
|
|
Loading…
Reference in a new issue