From cae3f28dcc2fe6920650091e6026763c33a1ea49 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 15 Feb 2023 17:42:17 +0200 Subject: [PATCH] Complete remove use of void QProcess::start(const QString &command, QIODevice::OpenMode mode = ReadWrite). --- src/libs/vmisc/def.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/libs/vmisc/def.cpp b/src/libs/vmisc/def.cpp index 136b3fd5e..129dddc97 100644 --- a/src/libs/vmisc/def.cpp +++ b/src/libs/vmisc/def.cpp @@ -243,19 +243,8 @@ void ShowInGraphicalShell(const QString &filePath) // Sending message through dbus will highlighting file QProcess dbus; #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) -#if !defined(QT_NO_PROCESS_COMBINED_ARGUMENT_START) - QT_WARNING_PUSH - QT_WARNING_DISABLE_CLANG("-Wdeprecated-declarations") - QT_WARNING_DISABLE_GCC("-Wdeprecated-declarations") - - dbus.start(command); // clazy:exclude=qt6-deprecated-api-fixes - - QT_WARNING_POP -#else - // This approach works too. Use it when we don't have access to - // void QProcess::start(const QString &command, QIODevice::OpenMode mode = ReadWrite) + // This approach works too. dbus.start(command, QStringList()); // clazy:exclude=qt6-deprecated-api-fixes -#endif //!defined(QT_NO_PROCESS_COMBINED_ARGUMENT_START) #else dbus.startCommand(command); #endif