From da3d1c72ce3134797616b5ad06aba7aa2c77139a Mon Sep 17 00:00:00 2001 From: "Friedrich W. H. Kossebau" Date: Fri, 26 Jun 2020 06:05:41 +0200 Subject: [PATCH] Port away from deprecated QBasicAtomicInteger<>::load() GIT_SILENT --- src/plasma/svg.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/plasma/svg.cpp b/src/plasma/svg.cpp index bcf29cd77..1e2ea9a9d 100644 --- a/src/plasma/svg.cpp +++ b/src/plasma/svg.cpp @@ -492,7 +492,12 @@ void SvgPrivate::createRenderer() void SvgPrivate::eraseRenderer() { - if (renderer && renderer->ref.load() == 2) { + if (renderer && +#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) + renderer->ref.loadRelaxed() == 2) { +#else + renderer->ref.load() == 2) { +#endif // this and the cache reference it s_renderers.erase(s_renderers.find(styleCrc + path));