Cleanup: replace QString("") by QString()

That should be more effective.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-04-03 19:34:52 +02:00 committed by Dirk Hohndel
parent 37c159aae1
commit d5953318ca
2 changed files with 3 additions and 3 deletions

View file

@ -653,7 +653,7 @@ QString getSubsurfaceDataPath(QString folderToFind)
folder = QDir(execdir.append("/../Resources/").append(folderToFind));
if (folder.exists())
return folder.absolutePath();
return QString("");
return QString();
}
static const char *printing_templates = "printing_templates";

View file

@ -637,8 +637,8 @@ void MainTab::updateDiveInfo()
ui.locationTags->show();
ui.editDiveSiteButton->setEnabled(!ui.location->text().isEmpty());
/* unset the special value text for date and time, just in case someone dove at midnight */
ui.dateEdit->setSpecialValueText(QString(""));
ui.timeEdit->setSpecialValueText(QString(""));
ui.dateEdit->setSpecialValueText(QString());
ui.timeEdit->setSpecialValueText(QString());
} else {
/* clear the fields */
clearTabs();