fix compilation error in CameraImageWrapper

This commit is contained in:
Nikolaos Ftylitakis 2021-08-07 21:50:13 +03:00
parent 63d427243e
commit 0f768f98e9
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ void CameraImageWrapper::updateImageAsGrayscale(const QImage &origin)
#if __cplusplus > 199711L
memcpy(m, (*line).data(), width); ///the below line is also usable
#else
memcpy(m, &line[0], width);
memcpy(m, &(*line)[0], width);
#endif
m += width * sizeof(zxing::byte);
}