fix: resolve compilation warnings and Qt6 compatibility issues#495
Merged
18202781743 merged 1 commit intolinuxdeepin:masterfrom Jul 28, 2025
Merged
fix: resolve compilation warnings and Qt6 compatibility issues#49518202781743 merged 1 commit intolinuxdeepin:masterfrom
18202781743 merged 1 commit intolinuxdeepin:masterfrom
Conversation
deepin-ci-robot
added a commit
to linuxdeepin/dtk6core
that referenced
this pull request
Jul 24, 2025
Synchronize source files from linuxdeepin/dtkcore. Source-pull-request: linuxdeepin/dtkcore#495
deepin-ci-robot
added a commit
to linuxdeepin/dtk6core
that referenced
this pull request
Jul 25, 2025
Synchronize source files from linuxdeepin/dtkcore. Source-pull-request: linuxdeepin/dtkcore#495
1. Replaced QScopedPointer with std::unique_ptr for better memory management and consistency 2. Fixed time handling in DRecentManager for Qt6 by using QTimeZone 3. Added missing memory header for smart pointers These changes address compiler warnings and ensure proper functionality across both Qt5 and Qt6 versions, while modernizing the codebase with standard C++ features. fix: 修复编译警告和Qt6兼容性问题 1. 使用std::unique_ptr替代QScopedPointer以获得更好的内存管理和一致性 2. 在DRecentManager中修复Qt6的时间处理问题,使用QTimeZone 3. 添加缺失的memory头文件以支持智能指针 这些修改解决了编译器警告问题,并确保代码在Qt5和Qt6版本中都能正常工作,同 时使用标准C++特性使代码更现代化。
deepin-ci-robot
added a commit
to linuxdeepin/dtk6core
that referenced
this pull request
Jul 25, 2025
Synchronize source files from linuxdeepin/dtkcore. Source-pull-request: linuxdeepin/dtkcore#495
Contributor
deepin pr auto review关键摘要:
是否建议立即修改:
|
mhduiy
approved these changes
Jul 28, 2025
Contributor
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743, mhduiy The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
18202781743
pushed a commit
to linuxdeepin/dtk6core
that referenced
this pull request
Jul 28, 2025
Synchronize source files from linuxdeepin/dtkcore. Source-pull-request: linuxdeepin/dtkcore#495
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
management and consistency
These changes address compiler warnings and ensure proper functionality
across both Qt5 and Qt6 versions, while modernizing the codebase with
standard C++ features.
fix: 修复编译警告和Qt6兼容性问题
这些修改解决了编译器警告问题,并确保代码在Qt5和Qt6版本中都能正常工作,同
时使用标准C++特性使代码更现代化。