deepin-image-viewer icon indicating copy to clipboard operation
deepin-image-viewer copied to clipboard

fix: use Q_GLOBAL_STATIC to initialize `effectcs` in slideeffect.cpp

Open cheese opened this issue 5 years ago • 1 comments

REGISTER_EFFECTS(T) requires the QHash effects initialised first. But that's not guaranteed by C++ standard and the program may crash. Instead, use Q_GLOBAL_STATIC to initialise the QHash.

Log: use Q_GLOBAL_STATIC to initialize effectcs in slideeffect.cpp Signed-off-by: Robin Lee [email protected]

cheese avatar Nov 22 '20 03:11 cheese

TAG Bot

New tag: 5.9.17 DISTRIBUTION: unstable Suggest: synchronizing this PR through rebase #163

deepin-bot[bot] avatar Jan 31 '24 05:01 deepin-bot[bot]

TAG Bot

New tag: 6.0.4 DISTRIBUTION: unstable Suggest: synchronizing this PR through rebase #183

deepin-bot[bot] avatar Aug 15 '24 09:08 deepin-bot[bot]

TAG Bot

New tag: 6.0.5 DISTRIBUTION: unstable Suggest: synchronizing this PR through rebase #186

deepin-bot[bot] avatar Sep 05 '24 08:09 deepin-bot[bot]

CLA Assistant Lite bot:

如果你是以企业贡献者的身份进行提交,请联系我们签署企业贡献者许可协议
If you submit as corporate contributor, please contact us to sign our Corporate Contributor License Agreement

感谢您的提交,我们非常感谢。 像许多开源项目一样,在接受您的贡献之前,我们要求您签署我们的个人贡献者许可协议。 您只需发布与以下格式相同的评论即可签署个人贡献者许可协议
Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Individual Contributor License Agreement before we can accept your contribution. You can sign the Individual Contributor License Agreement by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA.

Robin Lee seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You can retrigger this bot by commenting recheck in this Pull Request

github-actions[bot] avatar Sep 05 '24 09:09 github-actions[bot]