summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qlogging.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2025-05-24 05:51:10 -0700
committerThiago Macieira <thiago.macieira@intel.com>2025-05-26 12:12:52 -0700
commit9ffa770afa8de33e2bf242a584010ee7a1bcd889 (patch)
tree663213a451a327a5e7bfa3fc5b016032f886ba56 /src/corelib/global/qlogging.cpp
parentd2ed84514d935aea412b6944866aeb41aa97ea89 (diff)
QLogging: fix build: narrowing conversion from qsizetype to size_t
Amends a6070847f075296458e1afef0210f9c89aca4b2a. error: narrowing conversion of ‘(& ba)->QByteArray::size()’ from ‘qsizetype’ {aka ‘long long int’} to ‘size_t’ {aka ‘long unsigned int’} [-Werror=narrowing] Task-number: QTBUG-120047 Task-number: QTBUG-120048 Change-Id: I1fe8c5d7318c398e4ef3fffd17e06f0eeccdd791 Reviewed-by: Kai Köhne <kai.koehne@qt.io>
Diffstat (limited to 'src/corelib/global/qlogging.cpp')
-rw-r--r--src/corelib/global/qlogging.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/global/qlogging.cpp b/src/corelib/global/qlogging.cpp
index 170ccfa7ebf..2fd2a52a88b 100644
--- a/src/corelib/global/qlogging.cpp
+++ b/src/corelib/global/qlogging.cpp
@@ -1860,7 +1860,7 @@ static bool systemd_default_message_handler(QtMsgType type,
? "QT_CATEGORY="_ba + context.category : QByteArray();
auto toIovec = [](const QByteArray &ba) {
- return iovec{const_cast<char*>(ba.data()), ba.size()};
+ return iovec{ const_cast<char*>(ba.data()), size_t(ba.size()) };
};
struct iovec fields[7] = {