macOS: Don't ifdef out code to resolve display name that might be used
The call to displayName is not guarded by the same ifdef. Pick-to: 6.2 6.3 6.4 Change-Id: I169777130ec316a2d2f837621280acb061072501 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
This commit is contained in:
parent
7fb25609a4
commit
b9a9edc52f
@ -195,7 +195,6 @@ QCocoaScreen::~QCocoaScreen()
|
|||||||
dispatch_release(m_displayLinkSource);
|
dispatch_release(m_displayLinkSource);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if QT_MACOS_DEPLOYMENT_TARGET_BELOW(__MAC_10_15)
|
|
||||||
static QString displayName(CGDirectDisplayID displayID)
|
static QString displayName(CGDirectDisplayID displayID)
|
||||||
{
|
{
|
||||||
QIOType<io_iterator_t> iterator;
|
QIOType<io_iterator_t> iterator;
|
||||||
@ -227,7 +226,6 @@ static QString displayName(CGDirectDisplayID displayID)
|
|||||||
|
|
||||||
return QString();
|
return QString();
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
void QCocoaScreen::update(CGDirectDisplayID displayId)
|
void QCocoaScreen::update(CGDirectDisplayID displayId)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user