From 482e6968478ec4bb268b2ba035b5edf7978d98eb Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Fri, 22 Nov 2024 03:34:31 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- src/common/utils.hh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/common/utils.hh b/src/common/utils.hh index 5d62166f..8a0a59ed 100644 --- a/src/common/utils.hh +++ b/src/common/utils.hh @@ -357,19 +357,19 @@ QString escapeAmps( QString const & str ); QString unescapeAmps( QString const & str ); //restrict scope to this very file. -namespace{ +namespace { // encoding mappings between QStringConverter::Encoding and QTextCodec::Encoding const QMap< QStringConverter::Encoding, QTextCodec::Encoding > encodingMap = { { QStringConverter::Latin1, QTextCodec::Latin1 }, { QStringConverter::Utf8, QTextCodec::Utf8 }, { QStringConverter::Utf16, QTextCodec::Utf16 }, - { QStringConverter::Utf16LE , QTextCodec::Utf16LE }, - { QStringConverter::Utf16BE , QTextCodec::Utf16BE }, - { QStringConverter::Utf32LE , QTextCodec::Utf32LE }, - { QStringConverter::Utf32BE , QTextCodec::Utf32BE }, + { QStringConverter::Utf16LE, QTextCodec::Utf16LE }, + { QStringConverter::Utf16BE, QTextCodec::Utf16BE }, + { QStringConverter::Utf32LE, QTextCodec::Utf32LE }, + { QStringConverter::Utf32BE, QTextCodec::Utf32BE }, // others }; -} +} // namespace QTextCodec::Encoding detectCodec( QByteArray & ba, char16_t expectedFirstCharacter = 0 ); QStringConverter::Encoding detectEncoding( QByteArray & ba, char16_t expectedFirstCharacter = 0 );