Commit 5e458b8e authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix some clazy warning

parent 34df8fda
......@@ -64,7 +64,7 @@ bool CategoryTypeComboBox::loggingCategoryIsNotDefault() const
return type() != mDefaultCategories;
}
void CategoryTypeComboBox::setDefaultCategories(const LoggingCategory::LoggingType &defaultCategories)
void CategoryTypeComboBox::setDefaultCategories(LoggingCategory::LoggingType defaultCategories)
{
mDefaultCategories = defaultCategories;
}
......
......@@ -35,7 +35,7 @@ public:
Q_REQUIRED_RESULT LoggingCategory::LoggingType type() const;
void setType(LoggingCategory::LoggingType type);
Q_REQUIRED_RESULT bool loggingCategoryIsNotDefault() const;
void setDefaultCategories(const LoggingCategory::LoggingType &defaultCategories);
void setDefaultCategories(LoggingCategory::LoggingType defaultCategories);
Q_REQUIRED_RESULT LoggingCategory::LoggingType defaultCategories() const;
void restoreToDefault();
......
......@@ -97,7 +97,7 @@ void KDebugSettingsLoadingCategories::readCategoriesFiles(const QString &path)
const QByteArray rulesFilePath = qgetenv("QT_LOGGING_CONF");
if (!rulesFilePath.isEmpty()) {
const QList<KDebugSettingsUtil::LoadLoggingCategory> envCategories = KDebugSettingsUtil::readLoggingQtCategories(QString::fromLatin1(rulesFilePath));
//const QList<KDebugSettingsUtil::LoadLoggingCategory> envCategories = KDebugSettingsUtil::readLoggingQtCategories(QString::fromLatin1(rulesFilePath));
//TODO
}
......
......@@ -51,10 +51,10 @@ bool SaveRulesJob::start()
//Save Rules
QTextStream out(&qtlogging);
out << QLatin1String("[Rules]\n");
for (const LoggingCategory &cat : mListKde) {
for (const LoggingCategory &cat : qAsConst(mListKde)) {
out << cat.createRule() + QLatin1Char('\n');
}
for (const LoggingCategory &cat : mListCustom) {
for (const LoggingCategory &cat : qAsConst(mListCustom)) {
out << cat.createCustomRule() + QLatin1Char('\n');
}
return true;
......
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