-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QDate: rework stdSysDaysToJulianDay()
Use !QT_CORE_REMOVED_SINCE(6, 7) to make the function a template in new C++20 code. The removed_api.cpp will still compile the exported version, keeping BC. This simplifies the ifdef'ery around the functions and saves the need for the QT6_{DECL,CALL}_NEW_OVERLOAD trick. Picking this change down to 6.7, because the original patch was also picked to 6.7. Tested it on MSVC in C++20 mode, and verified that the symbol is still there. Also tested the case from the linked bugreport, and verified that it does not give linker errors. Amends 88702cc and effectively reverts 91f48cc. Task-number: QTBUG-125610 Pick-to: 6.8 6.7 Change-Id: Idf49fd142cdc78ff8964a36f8c1e326357e1028e Reviewed-by: Thiago Macieira <[email protected]> Reviewed-by: Marc Mutz <[email protected]>
- Loading branch information
Showing
2 changed files
with
9 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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