diff options
author | Marc Mutz <marc.mutz@qt.io> | 2022-05-17 15:58:00 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2022-05-17 21:20:05 +0200 |
commit | 7fa17b5f7998926c8f8650694a977eb7a24ae191 (patch) | |
tree | 74e9d68cf7593f31784f10607e5b76f8b59e3ec3 | |
parent | 21e0cb7a42bd4f5f7173a93971217271245efde6 (diff) |
QTlsBackendOpenSSL: don't allocate memory for a QString appendee
Use the QLatin1String overload of QString::append().
Pick-to: 6.3
Change-Id: Id8ddfd72199cfb627c2d6648ce3011979f92094e
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
-rw-r--r-- | src/plugins/tls/openssl/qtlsbackend_openssl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/tls/openssl/qtlsbackend_openssl.cpp b/src/plugins/tls/openssl/qtlsbackend_openssl.cpp index bc15425af3..daadff34ee 100644 --- a/src/plugins/tls/openssl/qtlsbackend_openssl.cpp +++ b/src/plugins/tls/openssl/qtlsbackend_openssl.cpp @@ -72,7 +72,7 @@ QString QTlsBackendOpenSSL::getErrorsFromOpenSsl() if (!errorString.isEmpty()) errorString.append(", "_L1); q_ERR_error_string_n(errNum, buf, sizeof buf); - errorString.append(QString::fromLatin1(buf)); // error is ascii according to man ERR_error_string + errorString.append(QLatin1StringView(buf)); // error is ascii according to man ERR_error_string } return errorString; } |