Skip to content
Snippets Groups Projects
Commit 82c53237 authored by Thiago Macieira's avatar Thiago Macieira
Browse files

qMemCopy is deprecated, use memcpy


Change-Id: I4ed8d04694497b184f35768eb02d73f53f95251a
Reviewed-by: default avatarPaul Olav Tvete <paul.tvete@nokia.com>
parent b9e589d2
No related branches found
No related tags found
No related merge requests found
...@@ -199,7 +199,7 @@ void QWaylandCursor::setupPixmapCursor(QCursor *cursor) ...@@ -199,7 +199,7 @@ void QWaylandCursor::setupPixmapCursor(QCursor *cursor)
} }
QImage src = cursor->pixmap().toImage().convertToFormat(QImage::Format_ARGB32); QImage src = cursor->pixmap().toImage().convertToFormat(QImage::Format_ARGB32);
for (int y = 0; y < src.height(); ++y) for (int y = 0; y < src.height(); ++y)
qMemCopy(mBuffer->image()->scanLine(y), src.scanLine(y), src.bytesPerLine()); memcpy(mBuffer->image()->scanLine(y), src.scanLine(y), src.bytesPerLine());
mDisplay->setCursor(mBuffer, cursor->hotSpot().x(), cursor->hotSpot().y()); mDisplay->setCursor(mBuffer, cursor->hotSpot().x(), cursor->hotSpot().y());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment