QVulkanWindow: fix QByteArray::count deprecation warning
By using QBA::size Change-Id: I716c0e27230cd46e92ca5521d9a19cb296e221bd Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
This commit is contained in:
parent
893dd5d7be
commit
74bef86da8
@ -764,7 +764,7 @@ void QVulkanWindowPrivate::init()
|
||||
err = f->vkEnumerateDeviceLayerProperties(physDev, &count, layerProps.data());
|
||||
if (err == VK_SUCCESS) {
|
||||
for (const VkLayerProperties &prop : layerProps) {
|
||||
if (!strncmp(prop.layerName, stdValNamePtr, stdValName.count())) {
|
||||
if (!strncmp(prop.layerName, stdValNamePtr, stdValName.size())) {
|
||||
devInfo.enabledLayerCount = 1;
|
||||
devInfo.ppEnabledLayerNames = &stdValNamePtr;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user