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. Change-Id: I169777130ec316a2d2f837621280acb061072501 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> (cherry picked from commit b9a9edc52fd88745f6f45c76e48f1c2e32677e5c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
53cdf7525e
commit
b491bf11d6
@ -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