Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.5
-
None
-
-
ef9fe7a99 (dev), 2e70ca484 (6.6), 757f64bd1 (6.5)
Description
A change made to QLoggingCategory between Qt 6.2.3 and Qt 6.5.1 caused code that used the API as seen below, to no longer compile.
QLoggingCategory logging functions, like qCDebug, qCInfo, qCWarning, allowed passing a function returning a reference to a declared category as argument:
Q_LOGGING_CATEGORY(category, "mycat", QtInfoMsg) ... QLoggingCategory &cat() { return category; } ... qCInfo(cat) << "Info";
Attachments
For Gerrit Dashboard: QTBUG-115043 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
489709,2 | qC{Debug,Info,Warning,Critical}: move the function call to the macro | dev | qt/qtbase | Status: MERGED | +2 | 0 |
489726,2 | qC{Debug,Info,Warning,Critical}: move the function call to the macro | 6.6 | qt/qtbase | Status: MERGED | +2 | 0 |
489727,2 | qC{Debug,Info,Warning,Critical}: move the function call to the macro | 6.5 | qt/qtbase | Status: MERGED | +2 | 0 |