From 2332b6ccde5ed947a228e5d7036bd7f57f9767bc Mon Sep 17 00:00:00 2001 From: Andreas Eliasson Date: Tue, 15 Aug 2023 11:13:26 +0200 Subject: [PATCH] Doc: Remove references to non-existing current() method There seems to be no current() method. Replace with the vkInstance method. Fixes: QTBUG-115853 Change-Id: Ifc0f741186092862b498fe4be2d39076b92fa725 Reviewed-by: Laszlo Agocs (cherry picked from commit 50bce440277d4383dcf3a055cb9b5d513735bcbc) Reviewed-by: Qt Cherry-pick Bot --- src/gui/vulkan/qvulkaninstance.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gui/vulkan/qvulkaninstance.cpp b/src/gui/vulkan/qvulkaninstance.cpp index fc157bdae1a..6d3020d62df 100644 --- a/src/gui/vulkan/qvulkaninstance.cpp +++ b/src/gui/vulkan/qvulkaninstance.cpp @@ -245,7 +245,8 @@ QVulkanInstance::QVulkanInstance() /*! Destructor. - \note current() will return \nullptr once the instance is destroyed. + \note \l {QVulkanInstance::}{vkInstance()} will return \nullptr once the + instance is destroyed. */ QVulkanInstance::~QVulkanInstance() { @@ -540,8 +541,8 @@ void QVulkanInstance::setApiVersion(const QVersionNumber &vulkanVersion) \return true if successful, false on error or when Vulkan is not supported. - When successful, the pointer to this QVulkanInstance is retrievable via the - static function current(). + When successful, the pointer to this QVulkanInstance is retrievable via + \l {QVulkanInstance::}{vkInstance()}. The Vulkan instance and library is available as long as this QVulkanInstance exists, or until destroy() is called.