diff options
| author | Marius P <[email protected]> | 2023-12-24 08:20:40 +0200 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2023-12-25 10:28:58 +0000 |
| commit | b2defa2f98468fcb9491ef7c3b96e340bb6bfa92 (patch) | |
| tree | 1b51234ea32fb314efae0ce88d8dd07eed559b76 /src/views/dolphinremoteencoding.cpp | |
| parent | 2ba33b9220feec8aebb8059c299e6db7265593d3 (diff) | |
Fix issues if QT_NO_CAST_FROM_ASCII is defined
Fix issues e.g. "error: ‘QString::QString(const QByteArray&)’
is private within this context".
Diffstat (limited to 'src/views/dolphinremoteencoding.cpp')
| -rw-r--r-- | src/views/dolphinremoteencoding.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/views/dolphinremoteencoding.cpp b/src/views/dolphinremoteencoding.cpp index c9e973987..33c5868d6 100644 --- a/src/views/dolphinremoteencoding.cpp +++ b/src/views/dolphinremoteencoding.cpp @@ -151,7 +151,7 @@ void DolphinRemoteEncoding::slotItemSelected(QAction *action) if (action) { int id = action->data().toInt(); - KConfig config(("kio_" + m_currentURL.scheme() + "rc").toLatin1()); + KConfig config(QLatin1String("kio_%1rc").arg(m_currentURL.scheme())); QString host = m_currentURL.host(); if (m_menu->menu()->actions().at(id)->isChecked()) { QString charset = KCharsets::charsets()->encodingForName(m_encodingDescriptions.at(id)); @@ -169,9 +169,9 @@ void DolphinRemoteEncoding::slotDefault() { // We have no choice but delete all higher domain level // settings here since it affects what will be matched. - KConfig config(("kio_" + m_currentURL.scheme() + "rc").toLatin1()); + KConfig config(QLatin1String("kio_%1rc").arg(m_currentURL.scheme())); - QStringList partList = m_currentURL.host().split('.', Qt::SkipEmptyParts); + QStringList partList = m_currentURL.host().split(QLatin1Char('.'), Qt::SkipEmptyParts); if (!partList.isEmpty()) { partList.erase(partList.begin()); |
