Commit 22b10b95 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

constify

parent 7592ee26
......@@ -31,7 +31,7 @@
QList<LogMode *> JournaldModeFactory::createLogModes() const
{
QList<LogMode *> logModes {new JournaldLogMode()};
const QList<LogMode *> logModes {new JournaldLogMode()};
return logModes;
}
......
......@@ -45,16 +45,14 @@ JournaldLocalAnalyzer::JournaldLocalAnalyzer(LogMode *mode, QString filter)
case JournaldConfiguration::EntriesSystem:
mJournalFlags |= SD_JOURNAL_SYSTEM;
break;
default:
break;
}
int ret = sd_journal_open(&mJournal, mJournalFlags);
const int ret = sd_journal_open(&mJournal, mJournalFlags);
if (ret < 0) {
logWarning() << "Journald analyzer failed to open system journal";
return;
}
qintptr fd = sd_journal_get_fd(mJournal);
const qintptr fd = sd_journal_get_fd(mJournal);
mJournalNotifier = new QSocketNotifier(fd, QSocketNotifier::Read);
mJournalNotifier->setEnabled(false);
connect(mJournalNotifier, &QSocketNotifier::activated, this,
......
......@@ -45,7 +45,7 @@ QString XorgItemBuilder::createToolTipText(LogLine *line) const
result.append(QLatin1String("<table>"));
QString type = it.next();
const QString type = it.next();
if (type.isEmpty()) {
result.append(labelMessageFormat(i18n("Type:"), i18n("none")));
} else {
......
......@@ -45,7 +45,7 @@ QString XSessionItemBuilder::createToolTipText(LogLine *line) const
result.append(QLatin1String("<table>"));
QString type = it.next();
const QString type = it.next();
if (type.isEmpty()) {
result.append(labelMessageFormat(i18n("Program:"), i18n("none")));
} else {
......
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