mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-01-18 19:52:09 +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…
x
Reference in New Issue
Block a user