summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-04-26 10:08:54 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-04-29 12:58:49 -0700
commitb2b328fd7e6528a968247f53b716c22cc48c44d0 (patch)
treec83b70f5cc552e37b38cd5c64b8e931cc72c771b /desktop-widgets
parent26edea7f71bb1726cebe3955494ab049f337ecda (diff)
downloadsubsurface-b2b328fd7e6528a968247f53b716c22cc48c44d0.tar.gz
Cleanup: remove redundant string clearing
The default QString constructor generates an empty string. No point in assigning the empty string to such a thing. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/tab-widgets/TabDiveInformation.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/desktop-widgets/tab-widgets/TabDiveInformation.cpp b/desktop-widgets/tab-widgets/TabDiveInformation.cpp
index 0b778be7f..5fe6ea714 100644
--- a/desktop-widgets/tab-widgets/TabDiveInformation.cpp
+++ b/desktop-widgets/tab-widgets/TabDiveInformation.cpp
@@ -52,7 +52,6 @@ void TabDiveInformation::updateProfile()
volume_t sac;
QString gaslist, SACs, separator;
- gaslist = ""; SACs = ""; volumes = ""; separator = "";
for (int i = 0; i < MAX_CYLINDERS; i++) {
if (!is_cylinder_used(current_dive, i))
continue;