diff options
author | Konstantin Ritt <ritt.ks@gmail.com> | 2015-03-16 04:13:32 +0400 |
---|---|---|
committer | Konstantin Ritt <ritt.ks@gmail.com> | 2015-03-16 11:06:14 +0000 |
commit | 137265904638da501a175f1332ec880d77bfd214 (patch) | |
tree | 91dcac9b73bdd9c0130f28365b1b0dbee7a40312 /src/plugins/sceneparsers/assimp/assimpparser.cpp | |
parent | 5dc05523555c35d3ea043ed2405dcdf9e6b62ba4 (diff) |
[.*SceneParser] Minor clean-up
Change-Id: I171a3e44383f2f5160b24113de6d92725ed19fe9
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/plugins/sceneparsers/assimp/assimpparser.cpp')
-rw-r--r-- | src/plugins/sceneparsers/assimp/assimpparser.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/sceneparsers/assimp/assimpparser.cpp b/src/plugins/sceneparsers/assimp/assimpparser.cpp index 054c3ab79..5cbdc7b46 100644 --- a/src/plugins/sceneparsers/assimp/assimpparser.cpp +++ b/src/plugins/sceneparsers/assimp/assimpparser.cpp @@ -249,12 +249,12 @@ AssimpParser::~AssimpParser() * Return true if the provided \a path has a suffix supported * by the Assimp Assets importer. */ -bool AssimpParser::isAssimpPath(const QString& path) +bool AssimpParser::isAssimpPath(const QString &path) { QFileInfo fileInfo(path); if (!fileInfo.exists() || - !AssimpParser::assimpSupportedFormats().contains(fileInfo.suffix().toLower())) + !AssimpParser::assimpSupportedFormatsList.contains(fileInfo.suffix().toLower())) return false; return true; } @@ -290,7 +290,7 @@ void AssimpParser::setSource(const QUrl &source) * Returns true if the extension of \a path is supported by * the assimp parser. */ -bool AssimpParser::isExtensionSupported(const QUrl &source) +bool AssimpParser::isExtensionSupported(const QUrl &source) const { const QString path = QUrlHelper::urlToLocalFileOrQrc(source); return AssimpParser::isAssimpPath(path); @@ -303,7 +303,7 @@ bool AssimpParser::isExtensionSupported(const QUrl &source) * * Returns Q_NULLPTR if \a id was specified but not node matching it can be found. */ -QEntity *AssimpParser::scene(QString id) +QEntity *AssimpParser::scene(const QString &id) { // m_aiScene shouldn't be null. // If it is either, the file failed to be imported or @@ -328,7 +328,7 @@ QEntity *AssimpParser::scene(QString id) * Returns a Node from the scene identified by \a id. * Returns Q_NULLPTR if no node can be found. */ -QEntity *AssimpParser::node(QString id) +QEntity *AssimpParser::node(const QString &id) { if (m_scene == Q_NULLPTR || m_scene->m_aiScene == Q_NULLPTR) return Q_NULLPTR; @@ -914,7 +914,7 @@ AssimpParser::SceneImporter::~SceneImporter() delete m_importer; } -} // Qt3D +} // namespace Qt3D QT_END_NAMESPACE |