Commit 7bd61d91 authored by Laurent Montel's avatar Laurent Montel 😁

Fix some clazy warning

parent facb3d30
Pipeline #23102 passed with stage
in 10 minutes and 19 seconds
......@@ -84,7 +84,7 @@ public:
Q_REQUIRED_RESULT QSet<QString> twoUpperLetterExceptions() const;
Q_REQUIRED_RESULT QHash<QString, QString> autocorrectEntries() const;
Q_REQUIRED_RESULT bool autocorrect(bool htmlMode, QTextDocument &document, int &position);
bool autocorrect(bool htmlMode, QTextDocument &document, int &position);
void writeConfig();
Q_REQUIRED_RESULT bool addAutoCorrect(const QString &currentWord, const QString &replaceWord);
......
......@@ -63,7 +63,7 @@ void CollectionAnnotationsAttributeTest::shouldCloneAttribute()
annotations.insert("bla", "bla");
annotations.insert("foo2", "bli");
PimCommon::CollectionAnnotationsAttribute attr(annotations);
PimCommon::CollectionAnnotationsAttribute *result = static_cast<PimCommon::CollectionAnnotationsAttribute *>(attr.clone());
PimCommon::CollectionAnnotationsAttribute *result = attr.clone();
QVERIFY(attr == *result);
delete result;
}
......
......@@ -86,7 +86,8 @@ void PluginInterface::createPluginInterface()
qCWarning(PIMCOMMONAKONADI_LOG) << "Missing action collection";
return;
}
for (PimCommon::GenericPlugin *plugin : d->mGenericPluginManager->pluginsList()) {
const auto pluginsList = d->mGenericPluginManager->pluginsList();
for (PimCommon::GenericPlugin *plugin : pluginsList) {
if (plugin->isEnabled()) {
PimCommon::GenericPluginInterface *interface = static_cast<PimCommon::GenericPluginInterface *>(plugin->createInterface(this));
interface->setParentWidget(d->mParentWidget);
......
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