Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Fix typo in assert messages

parent 086e32ac
......@@ -79,13 +79,13 @@ void ResourceLinking::LinkResourceToActivity(QString initiatingAgent,
Q_ASSERT_X(!initiatingAgent.isEmpty(),
"ResourceLinking::LinkResourceToActivity",
"Agent shoud not be empty");
"Agent should not be empty");
Q_ASSERT_X(!usedActivity.isEmpty(),
"ResourceLinking::LinkResourceToActivity",
"Activity shoud not be empty");
"Activity should not be empty");
Q_ASSERT_X(!targettedResource.isEmpty(),
"ResourceLinking::LinkResourceToActivity",
"Resource shoud not be empty");
"Resource should not be empty");
Utils::prepare(*resourcesDatabase(), linkResourceToActivityQuery,
QStringLiteral(
......@@ -136,13 +136,13 @@ void ResourceLinking::UnlinkResourceFromActivity(QString initiatingAgent,
Q_ASSERT_X(!initiatingAgent.isEmpty(),
"ResourceLinking::UnlinkResourceFromActivity",
"Agent shoud not be empty");
"Agent should not be empty");
Q_ASSERT_X(!usedActivity.isEmpty(),
"ResourceLinking::UnlinkResourceFromActivity",
"Activity shoud not be empty");
"Activity should not be empty");
Q_ASSERT_X(!targettedResource.isEmpty(),
"ResourceLinking::UnlinkResourceFromActivity",
"Resource shoud not be empty");
"Resource should not be empty");
QSqlQuery *query = nullptr;
......@@ -205,13 +205,13 @@ bool ResourceLinking::IsResourceLinkedToActivity(QString initiatingAgent,
Q_ASSERT_X(!initiatingAgent.isEmpty(),
"ResourceLinking::IsResourceLinkedToActivity",
"Agent shoud not be empty");
"Agent should not be empty");
Q_ASSERT_X(!usedActivity.isEmpty(),
"ResourceLinking::IsResourceLinkedToActivity",
"Activity shoud not be empty");
"Activity should not be empty");
Q_ASSERT_X(!targettedResource.isEmpty(),
"ResourceLinking::IsResourceLinkedToActivity",
"Resource shoud not be empty");
"Resource should not be empty");
Utils::prepare(*resourcesDatabase(), isResourceLinkedToActivityQuery,
QStringLiteral(
......
......@@ -132,13 +132,13 @@ ResourceScoreCache::ResourceScoreCache(const QString &activity,
Q_ASSERT_X(!d->application.isEmpty(),
"ResourceScoreCache::constructor",
"Agent shoud not be empty");
"Agent should not be empty");
Q_ASSERT_X(!d->activity.isEmpty(),
"ResourceScoreCache::constructor",
"Activity shoud not be empty");
"Activity should not be empty");
Q_ASSERT_X(!d->resource.isEmpty(),
"ResourceScoreCache::constructor",
"Resource shoud not be empty");
"Resource should not be empty");
}
......
......@@ -138,10 +138,10 @@ void ResourceScoreMaintainer::processResource(const QString &resource,
Q_ASSERT_X(!application.isEmpty(),
"ResourceScoreMaintainer::processResource",
"Agent shoud not be empty");
"Agent should not be empty");
Q_ASSERT_X(!resource.isEmpty(),
"ResourceScoreMaintainer::processResource",
"Resource shoud not be empty");
"Resource should not be empty");
if (d->scheduledResources.contains(activity)
&& d->scheduledResources[activity].contains(application)
......
......@@ -155,13 +155,13 @@ void StatsPlugin::openResourceEvent(const QString &usedActivity,
{
Q_ASSERT_X(!initiatingAgent.isEmpty(),
"StatsPlugin::openResourceEvent",
"Agent shoud not be empty");
"Agent should not be empty");
Q_ASSERT_X(!usedActivity.isEmpty(),
"StatsPlugin::openResourceEvent",
"Activity shoud not be empty");
"Activity should not be empty");
Q_ASSERT_X(!targettedResource.isEmpty(),
"StatsPlugin::openResourceEvent",
"Resource shoud not be empty");
"Resource should not be empty");
detectResourceInfo(targettedResource);
......@@ -187,13 +187,13 @@ void StatsPlugin::closeResourceEvent(const QString &usedActivity,
{
Q_ASSERT_X(!initiatingAgent.isEmpty(),
"StatsPlugin::closeResourceEvent",
"Agent shoud not be empty");
"Agent should not be empty");
Q_ASSERT_X(!usedActivity.isEmpty(),
"StatsPlugin::closeResourceEvent",
"Activity shoud not be empty");
"Activity should not be empty");
Q_ASSERT_X(!targettedResource.isEmpty(),
"StatsPlugin::closeResourceEvent",
"Resource shoud not be empty");
"Resource should not be empty");
Utils::prepare(*resourcesDatabase(), closeResourceEventQuery, QStringLiteral(
"UPDATE ResourceEvent "
......@@ -553,13 +553,13 @@ void StatsPlugin::DeleteStatsForResource(const QString &activity,
{
Q_ASSERT_X(!client.isEmpty(),
"StatsPlugin::DeleteStatsForResource",
"Agent shoud not be empty");
"Agent should not be empty");
Q_ASSERT_X(!activity.isEmpty(),
"StatsPlugin::DeleteStatsForResource",
"Activity shoud not be empty");
"Activity should not be empty");
Q_ASSERT_X(!resource.isEmpty(),
"StatsPlugin::DeleteStatsForResource",
"Resource shoud not be empty");
"Resource should not be empty");
Q_ASSERT_X(client != CURRENT_AGENT_TAG,
"StatsPlugin::DeleteStatsForResource",
"We can not handle CURRENT_AGENT_TAG here");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment