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() )
|
!map.value( "time_zone" ).toString().isEmpty() )
|
||||||
{
|
{
|
||||||
QString timezoneString = map.value( "time_zone" ).toString();
|
QString timezoneString = map.value( "time_zone" ).toString();
|
||||||
QStringList timezone = timezoneString.split( '/', QString::SkipEmptyParts );
|
QStringList tzParts = timezoneString.split( '/', QString::SkipEmptyParts );
|
||||||
if ( timezone.size() >= 2 )
|
if ( tzParts.size() >= 2 )
|
||||||
{
|
{
|
||||||
cDebug() << "GeoIP reporting" << timezoneString;
|
cDebug() << "GeoIP reporting" << timezoneString;
|
||||||
QString region = timezone.takeFirst();
|
QString region = tzParts.takeFirst();
|
||||||
QString zone = timezone.join( '/' );
|
QString zone = tzParts.join( '/' );
|
||||||
m_startingTimezone = qMakePair( region, zone );
|
m_startingTimezone = qMakePair( region, zone );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user