Showing the changes to libraries/script-engine/src/FileScriptingInterface.cpp (1 of 1 file). Show all
Unified · Split
| @@ -65,25 +65,21 @@ bool FileScriptingInterface::isTempDir(QString tempDir) { · 64 unmodified lines | ||
| 65 | 65 | folderName = "/" + testDir.section("/", -1); |
| 66 | 66 | QString testContainer = testDir; |
| 67 | 67 | testContainer.remove(folderName); |
| 68 | − if (testContainer == tempContainer) return true; | |
| 69 | − return false; | |
| 68 | + return (testContainer == tempContainer); | |
| 70 | 69 | } |
| 71 | 70 | |
| 72 | 71 | // checks whether the webview is displaying a Clara.io page for Marketplaces.qml |
| 73 | 72 | bool FileScriptingInterface::isClaraLink(QUrl url) { |
| 74 | − if (url.toString().contains("clara.io") && !url.toString().contains("clara.io/signup")) return true; | |
| 75 | − return false; | |
| 73 | + return (url.toString().contains("clara.io") && !url.toString().contains("clara.io/signup")); | |
| 76 | 74 | } |
| 77 | 75 | |
| 78 | 76 | // checks whether a user tries to download a file that is not in .fbx format |
| 79 | 77 | bool FileScriptingInterface::isNotFbx(QUrl url) { |
| 80 | − if (url.toString().endsWith(".zip") && !(url.toString().contains("fbx") )) return true; | |
| 81 | − return false; | |
| 78 | + return (url.toString().endsWith(".zip") && !(url.toString().contains("fbx") )); | |
| 82 | 79 | } |
| 83 | 80 | |
| 84 | 81 | bool FileScriptingInterface::isZippedFbx(QUrl url) { |
| 85 | − if (url.toString().endsWith("fbx.zip")) return true; | |
| 86 | − return false; | |
| 82 | + return (url.toString().endsWith("fbx.zip")); | |
| 87 | 83 | } |
| 88 | 84 | |
| 89 | 85 | // this function is not in use |