Closed 18202781743 closed 3 months ago
Doc Check bot :green_circle: Document Coverage Check Passed!
关键摘要:
formatAppId
函数中,使用了正则表达式来替换非法字符,但没有考虑到中文和特殊字符的情况。QFile
和QIODevice
的使用没有显式地关闭文件,可能会导致资源泄露。qCDebug
和qCWarning
的使用在生产环境中可能不合适,应该使用qDebug
和qWarning
来区分调试和错误信息。qt_assert
已被Q_ASSERT
替代,建议统一代码风格。是否建议立即修改: 是
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: 18202781743, zccrs
The full list of commands accepted by this bot can be found here.
Add fallback, using fileName of /proc/self/exe as AppId. Remove assert for empty appId.