Commit 724375c9 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Const'ify variable

parent c6d20ed7
......@@ -40,7 +40,6 @@ K_PLUGIN_FACTORY(Factory, registerPlugin<KAudiocdModule>();)
KAudiocdModule::KAudiocdModule(QWidget *parent, const QVariantList &lst)
: KCModule(parent)
, configChanged(false)
{
Q_UNUSED(lst);
......@@ -127,8 +126,8 @@ void KAudiocdModule::updateExample()
{
QString text = audioConfig->example->text();
QString deqoutedReplaceInput = removeQoutes(audioConfig->kcfg_replaceInput->text());
QString deqoutedReplaceOutput = removeQoutes(audioConfig->kcfg_replaceOutput->text());
const QString deqoutedReplaceInput = removeQoutes(audioConfig->kcfg_replaceInput->text());
const QString deqoutedReplaceOutput = removeQoutes(audioConfig->kcfg_replaceOutput->text());
text.replace(QRegularExpression(deqoutedReplaceInput), deqoutedReplaceOutput);
audioConfig->exampleOutput->setText(text);
}
......
......@@ -68,7 +68,7 @@ private Q_SLOTS:
private:
KConfig *config;
bool configChanged;
bool configChanged = false;
int getBitrateIndex(int value);
......
......@@ -223,7 +223,7 @@ void EncoderFLAC::fillSongInfo(KCDDB::CDInfo info, int track, const QString &com
Comment(QLatin1String("DATE"), QVariant(QString()))};
if (info.get(Year).toInt() > 0) {
const QDateTime dt = QDate(info.get(Year).toInt(), 1, 1).startOfDay();
comments[6] = Comment(QLatin1String("DATE"), dt.toString(Qt::ISODate));
comments[6] = Comment(QStringLiteral("DATE"), dt.toString(Qt::ISODate));
}
FLAC__StreamMetadata_VorbisComment_Entry entry;
......
Supports Markdown
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