diff options
author | Mårten Nordheim <[email protected]> | 2022-03-16 11:52:36 +0100 |
---|---|---|
committer | Mårten Nordheim <[email protected]> | 2022-03-17 14:15:06 +0000 |
commit | 74bef86da8b63996ca6947d81e82b667ac1eb0b2 (patch) | |
tree | 3bfe2d1163e082e8c1c54980684af1267da0ae9a /src/gui/vulkan | |
parent | 893dd5d7bec96656a2dea67fbd0a7c9c68ac44d7 (diff) |
QVulkanWindow: fix QByteArray::count deprecation warning
By using QBA::size
Change-Id: I716c0e27230cd46e92ca5521d9a19cb296e221bd
Reviewed-by: Sona Kurazyan <[email protected]>
Diffstat (limited to 'src/gui/vulkan')
-rw-r--r-- | src/gui/vulkan/qvulkanwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/vulkan/qvulkanwindow.cpp b/src/gui/vulkan/qvulkanwindow.cpp index ab2cdfe6bb9..310827dd068 100644 --- a/src/gui/vulkan/qvulkanwindow.cpp +++ b/src/gui/vulkan/qvulkanwindow.cpp @@ -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; |