diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2017-10-04 10:39:36 +0200 |
---|---|---|
committer | Johan Helsing <johan.helsing@qt.io> | 2017-10-19 06:57:09 +0000 |
commit | 88be2bcd67ba3588ae09e5a8c452543a3495d303 (patch) | |
tree | 75c731815060f943cbdb2159a9f57f0ffb9b3e76 /tests/auto/compositor | |
parent | 2355bf6344f4fd72ce62b0664682670af4c5079f (diff) |
Use QImage::sizeInBytes() instead of deprecated QImage::byteCount()
Change-Id: If3f21fc43d0118c1819d354c8ef43f1b79617c7b
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'tests/auto/compositor')
-rw-r--r-- | tests/auto/compositor/compositor/mockclient.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/compositor/compositor/mockclient.cpp b/tests/auto/compositor/compositor/mockclient.cpp index 3b3bfa756..970890a65 100644 --- a/tests/auto/compositor/compositor/mockclient.cpp +++ b/tests/auto/compositor/compositor/mockclient.cpp @@ -249,7 +249,7 @@ ShmBuffer::ShmBuffer(const QSize &size, wl_shm *shm) ShmBuffer::~ShmBuffer() { - munmap(image.bits(), image.byteCount()); + munmap(image.bits(), image.sizeInBytes()); wl_buffer_destroy(handle); wl_shm_pool_destroy(shm_pool); } |