mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
37c159aae1
commit
d5953318ca
2 changed files with 3 additions and 3 deletions
|
@ -653,7 +653,7 @@ QString getSubsurfaceDataPath(QString folderToFind)
|
||||||
folder = QDir(execdir.append("/../Resources/").append(folderToFind));
|
folder = QDir(execdir.append("/../Resources/").append(folderToFind));
|
||||||
if (folder.exists())
|
if (folder.exists())
|
||||||
return folder.absolutePath();
|
return folder.absolutePath();
|
||||||
return QString("");
|
return QString();
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *printing_templates = "printing_templates";
|
static const char *printing_templates = "printing_templates";
|
||||||
|
|
|
@ -637,8 +637,8 @@ void MainTab::updateDiveInfo()
|
||||||
ui.locationTags->show();
|
ui.locationTags->show();
|
||||||
ui.editDiveSiteButton->setEnabled(!ui.location->text().isEmpty());
|
ui.editDiveSiteButton->setEnabled(!ui.location->text().isEmpty());
|
||||||
/* unset the special value text for date and time, just in case someone dove at midnight */
|
/* unset the special value text for date and time, just in case someone dove at midnight */
|
||||||
ui.dateEdit->setSpecialValueText(QString(""));
|
ui.dateEdit->setSpecialValueText(QString());
|
||||||
ui.timeEdit->setSpecialValueText(QString(""));
|
ui.timeEdit->setSpecialValueText(QString());
|
||||||
} else {
|
} else {
|
||||||
/* clear the fields */
|
/* clear the fields */
|
||||||
clearTabs();
|
clearTabs();
|
||||||
|
|
Loading…
Add table
Reference in a new issue