Port away from deprecated QBasicAtomicInteger<>::load()
GIT_SILENT
This commit is contained in:
parent
68984d91f7
commit
da3d1c72ce
@ -492,7 +492,12 @@ void SvgPrivate::createRenderer()
|
|||||||
|
|
||||||
void SvgPrivate::eraseRenderer()
|
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
|
// this and the cache reference it
|
||||||
s_renderers.erase(s_renderers.find(styleCrc + path));
|
s_renderers.erase(s_renderers.find(styleCrc + path));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user