Message ID | 20240114171723.14092-20-dev@benjarobin.fr (mailing list archive) |
---|---|
State | Accepted |
Commit | 00cf0853b4e23346a8c15c961e8467c6e4668401 |
Headers | show
Received: from smtpout1.mo529.mail-out.ovh.net (smtpout1.mo529.mail-out.ovh.net [178.32.125.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ED7FECA69 for <linux-trace-devel@vger.kernel.org>; Sun, 14 Jan 2024 17:25:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=benjarobin.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=benjarobin.fr Received: from mxplan5.mail.ovh.net (unknown [10.108.17.201]) by mo529.mail-out.ovh.net (Postfix) with ESMTPS id 0BA2A20455; Sun, 14 Jan 2024 17:17:41 +0000 (UTC) Received: from benjarobin.fr (37.59.142.108) by DAG6EX2.mxp5.local (172.16.2.52) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Sun, 14 Jan 2024 18:17:40 +0100 Authentication-Results: garm.ovh; auth=pass (GARM-108S0020980d522-e95e-4f6e-b7f6-1735def6f390, 5BE38D5D59959AD767059B58A5CDE138DFC9D9F8) smtp.auth=dev@benjarobin.fr X-OVh-ClientIp: 92.161.126.4 From: Benjamin ROBIN <dev@benjarobin.fr> To: <y.karadz@gmail.com> CC: <linux-trace-devel@vger.kernel.org>, Benjamin ROBIN <dev@benjarobin.fr> Subject: [PATCH 19/34] kernelshark: Fix qfileinfo-exists Clazy warning Date: Sun, 14 Jan 2024 18:17:08 +0100 Message-ID: <20240114171723.14092-20-dev@benjarobin.fr> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240114171723.14092-1-dev@benjarobin.fr> References: <20240114171723.14092-1-dev@benjarobin.fr> Precedence: bulk X-Mailing-List: linux-trace-devel@vger.kernel.org List-Id: <linux-trace-devel.vger.kernel.org> List-Subscribe: <mailto:linux-trace-devel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-trace-devel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: DAG1EX2.mxp5.local (172.16.2.2) To DAG6EX2.mxp5.local (172.16.2.52) X-Ovh-Tracer-GUID: 4ea60e09-1aaf-476d-9ae4-4757adb6b5d2 X-Ovh-Tracer-Id: 1671961365053333402 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvkedrvdeiledgleelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffojghfggfgtghisehtkeertdertddtnecuhfhrohhmpeeuvghnjhgrmhhinhcutffquefkpfcuoeguvghvsegsvghnjhgrrhhosghinhdrfhhrqeenucggtffrrghtthgvrhhnpedtheetffeikedvjeegudelheelkeehheekgffgheehtdevjeffjedvgedtvefhjeenucfkphepuddvjedrtddrtddruddpfeejrdehledrudegvddruddtkedpledvrdduiedurdduvdeirdegnecuvehluhhsthgvrhfuihiivgepfeefnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepoeguvghvsegsvghnjhgrrhhosghinhdrfhhrqedpnhgspghrtghpthhtohepuddprhgtphhtthhopeihrdhkrghrrgguiiesghhmrghilhdrtghomhdplhhinhhugidqthhrrggtvgdquggvvhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdpoffvtefjohhsthepmhhohedvledpmhhouggvpehsmhhtphhouhht |
Series |
Fix kernelshark issues introduced by the migration to Qt6
|
expand
|
diff --git a/src/KsUtils.cpp b/src/KsUtils.cpp index 83f8f2e..792678d 100644 --- a/src/KsUtils.cpp +++ b/src/KsUtils.cpp @@ -471,7 +471,7 @@ QString getSaveFile(QWidget *parent, if (!fileName.isEmpty() && !fileName.endsWith(extension)) { fileName += extension; - if (QFileInfo(fileName).exists()) { + if (QFileInfo::exists(fileName)) { if (!KsWidgetsLib::fileExistsDialog(fileName)) fileName.clear(); }
Use static QFileInfo::exists() instead Signed-off-by: Benjamin ROBIN <dev@benjarobin.fr> --- src/KsUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)