summaryrefslogtreecommitdiffstats
path: root/src/corelib/text/qstringconverter.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-29 13:26:04 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-29 21:59:31 +0100
commit5b76be7e2bbd6f6d1eccc3a52a4595223c0620a1 (patch)
tree6e209f292838c8220c08cb7f85bfacf9f2954bed /src/corelib/text/qstringconverter.cpp
parent133067085a5f662865d0d7aaebcce7d82569b076 (diff)
Fix two missing conversions from in to qsizetype
Change-Id: I08ac9a0eb5dfb17f2b6cfaca9e3f3d7375c02bd4 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib/text/qstringconverter.cpp')
-rw-r--r--src/corelib/text/qstringconverter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/text/qstringconverter.cpp b/src/corelib/text/qstringconverter.cpp
index e8323745d2..e66f512ed8 100644
--- a/src/corelib/text/qstringconverter.cpp
+++ b/src/corelib/text/qstringconverter.cpp
@@ -1217,7 +1217,7 @@ static QString convertToUnicodeCharByChar(QByteArrayView in, QStringConverter::S
copyLocation = state->remainingChars;
extra += copyLocation;
}
- int newLength = length + extra;
+ qsizetype newLength = length + extra;
char *mbcs = new char[newLength];
//ensure that we have a NULL terminated string
mbcs[newLength-1] = 0;