aboutsummaryrefslogtreecommitdiffstats
path: root/src/geniviextras/qdltregistration.cpp
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@pelagicore.com>2016-10-19 10:47:16 +0200
committerDominik Holland <dominik.holland@pelagicore.com>2016-10-19 10:47:16 +0200
commit49b319a065c286bcc7a54b0e85ec639effa63234 (patch)
tree9f970df7c93915a2476f19684335fe0ccae549ed /src/geniviextras/qdltregistration.cpp
parent576b2d96d5ba01df9d30fa5d70de4956eb532018 (diff)
parent7f6fb1fb66b140ab0b0b8aee8a562bdbda1ce286 (diff)
Merge branch '5.7' into dev
Diffstat (limited to 'src/geniviextras/qdltregistration.cpp')
-rw-r--r--src/geniviextras/qdltregistration.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/geniviextras/qdltregistration.cpp b/src/geniviextras/qdltregistration.cpp
index 498bc67..d98ef25 100644
--- a/src/geniviextras/qdltregistration.cpp
+++ b/src/geniviextras/qdltregistration.cpp
@@ -165,6 +165,9 @@ void QDltRegistration::registerApplication(const char *dltAppID, const char *dlt
void QDltRegistration::registerCategory(const QLoggingCategory *category, const char *dltCtxName, const char *dltCtxDescription)
{
Q_D(QDltRegistration);
+ Q_ASSERT_X(!d->m_dltAppID.isEmpty(), "registerCategory", "A DLT Application needs to be registered before registering a Logging Category");
+ Q_ASSERT(category);
+ Q_ASSERT(strlen(category->categoryName()) != 0);
//TODO memory leak
d->registerCategory(category, new DltContext, dltCtxName, dltCtxDescription);
}