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