Closed mhduiy closed 2 months ago
关键摘要:
SECRET_KEY_STR_MAP
的定义移动到函数secretKeyMap()
中,以避免在每次调用NetworkSecretDialog
时都重新创建这个映射。constexpr
关键字声明SECRET_KEY_STR_MAP
,以避免在编译时重复计算。secretKeyMap()
函数中是否需要添加const
关键字,以保持与原始代码的一致性。是否建议立即修改:
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: 18202781743, caixr23, mhduiy
The full list of commands accepted by this bot can be found here.
When initializing const global variables, the translation file has not been loaded yet, delaying the initialization of variables that need to be translated
Issue: https://github.com/linuxdeepin/developer-center/issues/10207