From 1e387cf800ac1c00df59337d1eab7b97dc91f899 Mon Sep 17 00:00:00 2001 From: Ahmad Samir Date: Fri, 21 Oct 2022 16:47:45 +0200 Subject: [PATCH] QString: use '\0' instead of 0 Matches other places in the code. Change-Id: I5ede3a52875235cc6355f651b7205b7c5ed46d90 Reviewed-by: Thiago Macieira --- src/corelib/text/qstring.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/text/qstring.cpp b/src/corelib/text/qstring.cpp index 394e1d2c89e..c7a601fe5e1 100644 --- a/src/corelib/text/qstring.cpp +++ b/src/corelib/text/qstring.cpp @@ -2703,7 +2703,7 @@ void QString::resize(qsizetype size) reallocData(size, QArrayData::Grow); d.size = size; if (d->allocatedCapacity()) - d.data()[size] = 0; + d.data()[size] = u'\0'; } /*!