Clang: don't shadow global int timezone
This commit is contained in:
parent
d2964cc71c
commit
25de3aca6e
@ -132,12 +132,12 @@ LocaleViewStep::fetchGeoIpTimezone()
|
||||
!map.value( "time_zone" ).toString().isEmpty() )
|
||||
{
|
||||
QString timezoneString = map.value( "time_zone" ).toString();
|
||||
QStringList timezone = timezoneString.split( '/', QString::SkipEmptyParts );
|
||||
if ( timezone.size() >= 2 )
|
||||
QStringList tzParts = timezoneString.split( '/', QString::SkipEmptyParts );
|
||||
if ( tzParts.size() >= 2 )
|
||||
{
|
||||
cDebug() << "GeoIP reporting" << timezoneString;
|
||||
QString region = timezone.takeFirst();
|
||||
QString zone = timezone.join( '/' );
|
||||
QString region = tzParts.takeFirst();
|
||||
QString zone = tzParts.join( '/' );
|
||||
m_startingTimezone = qMakePair( region, zone );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user