[PATCH 19/34] kernelshark: Fix qfileinfo-exists Clazy warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Use static QFileInfo::exists() instead

Signed-off-by: Benjamin ROBIN <dev@xxxxxxxxxxxxx>
---
 src/KsUtils.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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();
 		}
-- 
2.43.0





[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux