From 7cc3d1e3ee05affd2c0cc65de090dff0af6c4dc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Fri, 5 Jun 2020 13:05:44 -0300 Subject: [PATCH] MAVLinkLogManager: Fix deprecated QString::sprintf MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- src/Vehicle/MAVLinkLogManager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Vehicle/MAVLinkLogManager.cc b/src/Vehicle/MAVLinkLogManager.cc index e7898968e..1b8d60fce 100644 --- a/src/Vehicle/MAVLinkLogManager.cc +++ b/src/Vehicle/MAVLinkLogManager.cc @@ -150,7 +150,7 @@ MAVLinkLogProcessor::valid() bool MAVLinkLogProcessor::create(MAVLinkLogManager* manager, const QString path, uint8_t id) { - _fileName.sprintf("%s/%03d-%s%s", + _fileName.asprintf("%s/%03d-%s%s", path.toLatin1().data(), id, QDateTime::currentDateTime().toString("yyyy-MM-dd-hh-mm-ss-zzz").toLocal8Bit().data(), -- 2.22.0