mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Correct the usage of std::string and QString
QStrings shouldn't be == "" to check for empty string, use .isEmpty() QStrings shouldn't be != "" to check for non empty, use .size() std::string shouldn't be cleared with = "", use .clear() Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
3b7624ff46
commit
cf848e5233
5 changed files with 18 additions and 18 deletions
|
@ -48,11 +48,11 @@ GlobeGPS::GlobeGPS(QWidget *parent) : MarbleWidget(parent),
|
|||
QDir marble;
|
||||
if (!list.contains("earth/googlesat/googlesat.dgml")) {
|
||||
subsurfaceDataPath = getSubsurfaceDataPath("marbledata");
|
||||
if (subsurfaceDataPath != "") {
|
||||
if (subsurfaceDataPath.size()) {
|
||||
MarbleDirs::setMarbleDataPath(subsurfaceDataPath);
|
||||
} else {
|
||||
subsurfaceDataPath = getSubsurfaceDataPath("data");
|
||||
if (subsurfaceDataPath != "")
|
||||
if (subsurfaceDataPath.size())
|
||||
MarbleDirs::setMarbleDataPath(subsurfaceDataPath);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue