summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2020-09-16 16:39:22 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2020-09-22 19:08:53 +0200
commit16a1ddd73337c2622499c77b12de9395d43aba87 (patch)
tree39a30cec6aec80a4808db9d7f00f8465af617c44
parent92a9a18b5d95b7d3d3fc2d3bb75bea58bd5c6878 (diff)
Use QLatin1Char in place of QChar in a few more places
QDateTimeParser mostly uses QLatin1Char where it can, but missed a few cases. Change-Id: I3df37c350047214aeb843c3290014fa45b4656fe Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Andreas Buhr <andreas.buhr@qt.io> Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
-rw-r--r--src/corelib/time/qdatetimeparser.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/corelib/time/qdatetimeparser.cpp b/src/corelib/time/qdatetimeparser.cpp
index f302651884..5e072b10ca 100644
--- a/src/corelib/time/qdatetimeparser.cpp
+++ b/src/corelib/time/qdatetimeparser.cpp
@@ -346,9 +346,9 @@ int QDateTimeParser::sectionPos(const SectionNode &sn) const
static QString unquote(QStringView str)
{
- const QChar quote(QLatin1Char('\''));
- const QChar slash(QLatin1Char('\\'));
- const QChar zero(QLatin1Char('0'));
+ const QLatin1Char quote('\'');
+ const QLatin1Char slash('\\');
+ const QLatin1Char zero('0');
QString ret;
QChar status(zero);
const int max = str.size();
@@ -405,7 +405,7 @@ bool QDateTimeParser::parseFormat(const QString &newFormat)
QStringList newSeparators;
int i, index = 0;
int add = 0;
- QChar status(zero);
+ QLatin1Char status(zero);
const int max = newFormat.size();
int lastQuote = -1;
for (i = 0; i<max; ++i) {