summaryrefslogtreecommitdiffstats
path: root/export-html.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-07-30 20:59:07 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-07-30 13:55:23 -0700
commit7fe76a5dbdef4a833122e0311191dd51896575f4 (patch)
tree34b1d4f8a7c2d6d4b6b97a142ca27937c4ec4284 /export-html.cpp
parent4bdd811f06096c2420a05dd3cc78fffbd7f3a663 (diff)
downloadsubsurface-7fe76a5dbdef4a833122e0311191dd51896575f4.tar.gz
Cleanup: Make WindowsTitleUpdate a global object
WindowsTitleUpdate is such a trivial object (a QObject with a single signal and no own state), that it's not really understandable why it would need all that "singleton" boiler-plate. Just make it a default constructed/destructed global object. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'export-html.cpp')
-rw-r--r--export-html.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/export-html.cpp b/export-html.cpp
index 652cb2c93..2371d5551 100644
--- a/export-html.cpp
+++ b/export-html.cpp
@@ -13,7 +13,6 @@
#include "git2.h"
#include "core/subsurfacestartup.h"
#include "core/divelogexportlogic.h"
-#include "core/windowtitleupdate.h"
#include "core/statistics.h"
int main(int argc, char **argv)
@@ -42,7 +41,6 @@ int main(int argc, char **argv)
qDebug() << "need --source and --output";
exit(1);
}
- WindowTitleUpdate *wtu = new WindowTitleUpdate();
int ret = parse_file(qPrintable(source));
if (ret) {
fprintf(stderr, "parse_file returned %d\n", ret);