1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-27 21:24:47 +01:00

Code cleanup

This commit is contained in:
Martin Tůma 2023-02-01 22:49:03 +01:00
parent c01b9da10c
commit c001235e91

View File

@ -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;
}