mirror of https://github.com/status-im/qzxing.git
fix compilation error in CameraImageWrapper
This commit is contained in:
parent
63d427243e
commit
0f768f98e9
|
@ -216,7 +216,7 @@ void CameraImageWrapper::updateImageAsGrayscale(const QImage &origin)
|
||||||
#if __cplusplus > 199711L
|
#if __cplusplus > 199711L
|
||||||
memcpy(m, (*line).data(), width); ///the below line is also usable
|
memcpy(m, (*line).data(), width); ///the below line is also usable
|
||||||
#else
|
#else
|
||||||
memcpy(m, &line[0], width);
|
memcpy(m, &(*line)[0], width);
|
||||||
#endif
|
#endif
|
||||||
m += width * sizeof(zxing::byte);
|
m += width * sizeof(zxing::byte);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue