Valgrind: Remove some unused QObject parent

Change-Id: Ieef2c25d64b4a82743ce25da54c9d364548eb8d6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2021-08-26 11:48:12 +02:00
parent 9929d3dd73
commit df939e15dd
2 changed files with 3 additions and 4 deletions

View File

@@ -644,9 +644,8 @@ void Parser::parse(QIODevice *device)
d->parse(device); d->parse(device);
} }
Parser::Parser(QObject *parent) Parser::Parser()
: QObject(parent), : d(new Private(this))
d(new Private(this))
{ {
} }

View File

@@ -50,7 +50,7 @@ class Parser : public QObject
Q_OBJECT Q_OBJECT
public: public:
explicit Parser(QObject *parent = nullptr); Parser();
~Parser() override; ~Parser() override;
// get and take ownership of the parsing results. If this function is not called the repository // get and take ownership of the parsing results. If this function is not called the repository