Fix some lgtm issues

This commit is contained in:
Ingo Weyrich
2019-10-30 14:07:49 +01:00
parent d7ec033829
commit 1d51016bdd
8 changed files with 18 additions and 18 deletions

View File

@@ -114,9 +114,9 @@ void xorMasks(int xStart, int xEnd, int yStart, int yEnd, const array2D<uint8_t>
}
}
void floodFill4Impl(int y, int x, int xStart, int xEnd, int yStart, int yEnd, array2D<uint8_t> &mask, std::stack<std::pair<uint16_t, uint16_t>, std::vector<std::pair<uint16_t, uint16_t>>> &coordStack)
void floodFill4Impl(int yin, int xin, int xStart, int xEnd, int yStart, int yEnd, array2D<uint8_t> &mask, std::stack<std::pair<uint16_t, uint16_t>, std::vector<std::pair<uint16_t, uint16_t>>> &coordStack)
{
coordStack.emplace(x, y);
coordStack.emplace(xin, yin);
while(!coordStack.empty()) {
auto coord = coordStack.top();