Port away from deprecated QBasicAtomicInteger<>::load()

GIT_SILENT
This commit is contained in:
Friedrich W. H. Kossebau 2020-06-26 06:05:41 +02:00
parent 68984d91f7
commit da3d1c72ce

View File

@ -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));