From abf4b3a0a3b438ecf040a837957e2b2936b1703d Mon Sep 17 00:00:00 2001 From: Marcus Hoffmann Date: Fri, 3 Dec 2021 01:01:24 +0100 Subject: [PATCH] InputBar: use QFileInfo::exists() Suggested by: Clazy: Use the static QFileInfo::exists() instead. It's documented to be faster. --- src/timeline/InputBar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp index 72ac3a32..6fd5c4f9 100644 --- a/src/timeline/InputBar.cpp +++ b/src/timeline/InputBar.cpp @@ -82,7 +82,7 @@ InputBar::insertMimeData(const QMimeData *md) } } - if (!path.isEmpty() && QFileInfo{path}.exists()) { + if (!path.isEmpty() && QFileInfo::exists(path)) { showPreview(*md, path, formats); } else { nhlog::ui()->warn("Clipboard does not contain any valid file paths.");