Resolve some variable hiding warnings

(C4456: variable hides previous local declaration)
This commit is contained in:
Vitor Kiguchi 2020-07-24 00:34:43 -03:00
parent e331fac004
commit d87fee05a9
5 changed files with 11 additions and 13 deletions

View file

@ -175,9 +175,9 @@ std::vector<u16> Rgb2Yuv(const QImage& source, int width, int height) {
auto dest = buffer.begin();
bool write = false;
int py, pu, pv;
for (int y = 0; y < height; ++y) {
for (int x = 0; x < width; ++x) {
QRgb rgb = source.pixel(x, y);
for (int j = 0; j < height; ++j) {
for (int i = 0; i < width; ++i) {
QRgb rgb = source.pixel(i, j);
int r = qRed(rgb);
int g = qGreen(rgb);
int b = qBlue(rgb);