diff options
author | Dominik Holland <dominik.holland@pelagicore.com> | 2017-03-31 14:45:30 +0200 |
---|---|---|
committer | Dominik Holland <dominik.holland@pelagicore.com> | 2017-04-05 11:16:08 +0000 |
commit | d3276f09afa02d5aed50be71f121ab45330d8840 (patch) | |
tree | a6952f0127af2fe5f7722bb3f880a307d9c329c6 /src/geniviextras/qdltregistration.cpp | |
parent | 82b8d32b4c7917d0ceac008ffafc937fe6604373 (diff) |
Fix issues found by clazy
Task-number: QTAUTO-319
Change-Id: I4f7bf0db4064cf7fd3e964d4e21057952fc23667
Reviewed-by: Vadim Popov <vadim.popov@pelagicore.com>
Reviewed-by: Kevin Funk <kevin.funk@kdab.com>
Diffstat (limited to 'src/geniviextras/qdltregistration.cpp')
-rw-r--r-- | src/geniviextras/qdltregistration.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/geniviextras/qdltregistration.cpp b/src/geniviextras/qdltregistration.cpp index 2a6ee9f..e2dc499 100644 --- a/src/geniviextras/qdltregistration.cpp +++ b/src/geniviextras/qdltregistration.cpp @@ -173,7 +173,7 @@ void QDltRegistrationPrivate::dltLogLevelChanged(char context_id[], uint8_t log_ QLoggingCategory* category = it.value().m_category; if (category->isEnabled(type) != enabled) { category->setEnabled(type, enabled); - q->logLevelChanged(category); + emit q->logLevelChanged(category); } } } @@ -209,8 +209,9 @@ DltLogLevelType QDltRegistrationPrivate::category2dltLevel(const QLoggingCategor types of a QLoggingCategory whenever the log level of a dlt context changes. */ -QDltRegistration::QDltRegistration() - : d_ptr(new QDltRegistrationPrivate(this)) +QDltRegistration::QDltRegistration(QObject *parent) + : QObject(parent) + , d_ptr(new QDltRegistrationPrivate(this)) { } |