iOS: Compare similar types when setting up QPlatformScreen
[NSArray count] returns an NSUInteger (unsigned long). Change-Id: I3b1c6720e9503ed181f01a7e737de07a277f7bde Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
This commit is contained in:
parent
d8bc9903f5
commit
9c6a4c1a37
@ -120,7 +120,7 @@ static QString deviceModelIdentifier()
|
||||
|
||||
QIOSScreen::QIOSScreen(unsigned int screenIndex)
|
||||
: QPlatformScreen()
|
||||
, m_uiScreen([[UIScreen screens] objectAtIndex:qMin(screenIndex, [[UIScreen screens] count] - 1)])
|
||||
, m_uiScreen([[UIScreen screens] objectAtIndex:qMin(NSUInteger(screenIndex), [[UIScreen screens] count] - 1)])
|
||||
, m_orientationListener(0)
|
||||
{
|
||||
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
||||
|
Loading…
Reference in New Issue
Block a user