diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-04-03 19:34:52 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-04-12 18:19:07 +0300 |
commit | d5953318cac32355b6115086f2b9e4ac9d71cf57 (patch) | |
tree | 2a779f485d29c07a127fd3fc402ebfbd5ea7f605 | |
parent | 37c159aae10589ffd15b24a88a52da0a308e09a4 (diff) | |
download | subsurface-d5953318cac32355b6115086f2b9e4ac9d71cf57.tar.gz |
Cleanup: replace QString("") by QString()
That should be more effective.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
-rw-r--r-- | core/qthelper.cpp | 2 | ||||
-rw-r--r-- | desktop-widgets/tab-widgets/maintab.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/core/qthelper.cpp b/core/qthelper.cpp index 9483d9ab5..37e6dcdfc 100644 --- a/core/qthelper.cpp +++ b/core/qthelper.cpp @@ -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"; diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp index 1be907ccc..0f0a2a84b 100644 --- a/desktop-widgets/tab-widgets/maintab.cpp +++ b/desktop-widgets/tab-widgets/maintab.cpp @@ -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(); |