mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 08:58:22 -04:00
Clang: don't shadow global int timezone
This commit is contained in:
parent
d2964cc71c
commit
25de3aca6e
1 changed files with 4 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue