diff options
author | Marc Mutz <[email protected]> | 2024-08-06 09:43:56 +0200 |
---|---|---|
committer | Marc Mutz <[email protected]> | 2024-08-06 22:35:55 +0000 |
commit | 819c32e3c23eb4afda27106b44be45f051efb58a (patch) | |
tree | f6fcfcddbdbe2db605f80fbeb658e3cbb34afbad /src/3rdparty/masm | |
parent | 1fca1477eb64b5335b2c996903301bfd1633d544 (diff) |
Port to std::(v)snprinf() and mark the module q(v)snprinf-free
Pick-to: 6.8
Change-Id: I682ddfae8d6132ee2d5f8e763e2af2d76ed4bb4c
Reviewed-by: Ulf Hermann <[email protected]>
Reviewed-by: Fabian Kosmale <[email protected]>
Diffstat (limited to 'src/3rdparty/masm')
-rw-r--r-- | src/3rdparty/masm/stubs/WTFStubs.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/3rdparty/masm/stubs/WTFStubs.cpp b/src/3rdparty/masm/stubs/WTFStubs.cpp index f876cda032..66e0b455b9 100644 --- a/src/3rdparty/masm/stubs/WTFStubs.cpp +++ b/src/3rdparty/masm/stubs/WTFStubs.cpp @@ -1,11 +1,13 @@ // Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only #include <config.h> + +#include <cstdio> + #include <stdlib.h> #include <stdio.h> #include <stdarg.h> #include <qdebug.h> -#include <qbytearray.h> // qvsnprintf #include <FilePrintStream.h> #if ENABLE(ASSEMBLER) && CPU(X86) && !OS(MAC_OS_X) @@ -58,7 +60,7 @@ FilePrintStream& dataFile() void dataLogFV(const char* format, va_list args) { char buffer[1024]; - qvsnprintf(buffer, sizeof(buffer), format, args); + std::vsnprintf(buffer, sizeof(buffer), format, args); qDebug().nospace().noquote() << buffer; } @@ -67,7 +69,7 @@ void dataLogF(const char* format, ...) char buffer[1024]; va_list args; va_start(args, format); - qvsnprintf(buffer, sizeof(buffer), format, args); + std::vsnprintf(buffer, sizeof(buffer), format, args); va_end(args); qDebug().nospace().noquote() << buffer; } |