diff options
author | Sergio Martins <sergio.martins@kdab.com> | 2016-12-10 16:49:10 +0000 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2016-12-10 17:11:08 +0000 |
commit | 803037f9603f1fbf37179861f058248949506b0b (patch) | |
tree | 0eccaa32e6a38dd2500be70fa4ea8bede2862063 /tools | |
parent | 6329b89c97c9f4f23499713b9016b11dd4285d73 (diff) |
Use the static QFileInfo::exists(), it's faster
It's stated in the documentation that it's faster.
Fixes all clazy-qfileinfo-exists warnings.
Change-Id: If80805f5144ddf765b4ed9d54f3aab842c21725f
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qgltf/qgltf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/qgltf/qgltf.cpp b/tools/qgltf/qgltf.cpp index 9471487a5..788f3cef5 100644 --- a/tools/qgltf/qgltf.cpp +++ b/tools/qgltf/qgltf.cpp @@ -167,7 +167,7 @@ AssimpIOSystem::AssimpIOSystem() bool AssimpIOSystem::Exists(const char *pFile) const { - return QFileInfo(QString::fromUtf8(pFile)).exists(); + return QFileInfo::exists(QString::fromUtf8(pFile)); } char AssimpIOSystem::getOsSeparator() const |