From 66e81467898be61686addfb83cd738557dc4078a Mon Sep 17 00:00:00 2001 From: Andras Lasso Date: Wed, 5 Apr 2023 10:24:59 -0400 Subject: [PATCH] STYLE: Removed translation from log messages Log messages should not be translated (it is not intended for users and would make it harder for developers to interpret the logs). --- Plugins/org.commontk.eventbus/ctkEventDefinitions.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Plugins/org.commontk.eventbus/ctkEventDefinitions.h b/Plugins/org.commontk.eventbus/ctkEventDefinitions.h index 3a72f4ed6b..644283c18b 100644 --- a/Plugins/org.commontk.eventbus/ctkEventDefinitions.h +++ b/Plugins/org.commontk.eventbus/ctkEventDefinitions.h @@ -42,7 +42,7 @@ class ctkBusEvent; ctkBusEvent *properties = new ctkBusEvent(topic, ctkEventBus::ctkEventTypeLocal, ctkEventBus::ctkSignatureTypeSignal, static_cast(sender), signature); \ bool ok = ctkEventBus::ctkEventBusManager::instance()->addEventProperty(*properties);\ if(!ok) {\ - qWarning("%s", tr("Some problem occourred during the signal registration with ID '%1'.").arg(topic).toUtf8().data());\ + qWarning("%s", QString("Some problem occourred during the signal registration with ID '%1'.").arg(topic).toUtf8().data());\ if(properties) {delete properties; properties = NULL;} \ }\ } @@ -52,7 +52,7 @@ class ctkBusEvent; ctkBusEvent *properties = new ctkBusEvent(topic, ctkEventBus::ctkEventTypeRemote, ctkEventBus::ctkSignatureTypeSignal, static_cast(sender), signature); \ bool ok = ctkEventBus::ctkEventBusManager::instance()->addEventProperty(*properties);\ if(!ok) {\ - qWarning("%s", tr("Some problem occourred during the signal registration with ID '%1'.").arg(topic).toUtf8().data());\ + qWarning("%s", QString("Some problem occourred during the signal registration with ID '%1'.").arg(topic).toUtf8().data());\ if(properties) {delete properties; properties = NULL;} \ }\ } @@ -62,7 +62,7 @@ class ctkBusEvent; ctkBusEvent *properties = new ctkBusEvent(topic, ctkEventBus::ctkEventTypeLocal, ctkEventBus::ctkSignatureTypeCallback, static_cast(observer), signature); \ bool ok = ctkEventBus::ctkEventBusManager::instance()->addEventProperty(*properties);\ if(!ok) {\ - qWarning("%s", tr("Some problem occourred during the callback registration with ID '%1'.").arg(topic).toUtf8().data());\ + qWarning("%s", QString("Some problem occourred during the callback registration with ID '%1'.").arg(topic).toUtf8().data());\ if(properties) {delete properties; properties = NULL;} \ }\ } @@ -72,7 +72,7 @@ class ctkBusEvent; ctkBusEvent *properties = new ctkBusEvent(topic, ctkEventBus::ctkEventTypeRemote, ctkEventBus::ctkSignatureTypeCallback, static_cast(sender), signature); \ bool ok = ctkEventBus::ctkEventBusManager::instance()->addEventProperty(*properties);\ if(!ok) {\ - qWarning("%s", tr("Some problem occourred during the callback registration with ID '%1'.").arg(topic).toUtf8().data());\ + qWarning("%s", QString("Some problem occourred during the callback registration with ID '%1'.").arg(topic).toUtf8().data());\ if(properties) {delete properties; properties = NULL;} \ }\ }