From a6cfdca7bd97f750bc034ec772f8c42c5458a0ac Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Fri, 19 Mar 2021 16:40:31 +0100 Subject: Clean up QSGRhiSupport wrt static functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make static everything that can be static. At the same time, make configure() non-static. Does not change behavior in any way, but this is the more logical approach. Also more future proof. Change-Id: I601d59a0547106802f330a7551a97186cde481e0 Reviewed-by: Christian Strømme (cherry picked from commit fb8ba3f7250f837dd29600d30108ba6f4470a727) Reviewed-by: Qt Cherry-pick Bot --- src/quick/items/qquickwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/quick/items') diff --git a/src/quick/items/qquickwindow.cpp b/src/quick/items/qquickwindow.cpp index a3d8b5eacb..697e5b3410 100644 --- a/src/quick/items/qquickwindow.cpp +++ b/src/quick/items/qquickwindow.cpp @@ -3665,7 +3665,7 @@ void QQuickWindow::setGraphicsApi(QSGRendererInterface::GraphicsApi api) // Standard case: tell the QRhi-based default adaptation what graphics api // (QRhi backend) to use. if (QSGRendererInterface::isApiRhiBased(api) || api == QSGRendererInterface::Unknown) - QSGRhiSupport::configure(api); + QSGRhiSupport::instance_internal()->configure(api); } /*! -- cgit v1.2.3