mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-27 21:24:47 +01:00
Code cleanup
This commit is contained in:
parent
c01b9da10c
commit
c001235e91
@ -6,11 +6,10 @@ static QString defaultPlugin()
|
||||
QString source;
|
||||
|
||||
QGeoPositionInfoSource *ps = QGeoPositionInfoSource::createDefaultSource(0);
|
||||
if (!ps)
|
||||
return source;
|
||||
|
||||
source = ps->sourceName();
|
||||
delete ps;
|
||||
if (ps) {
|
||||
source = ps->sourceName();
|
||||
delete ps;
|
||||
}
|
||||
|
||||
return source;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user