| 125 | } |
| 126 | |
| 127 | static int findLibraryByName(QList<LibraryPtr>* haystack, const GradleSpecifier& needle) |
| 128 | { |
| 129 | int retval = -1; |
| 130 | for (int i = 0; i < haystack->size(); ++i) { |
| 131 | if (haystack->at(i)->rawName().matchName(needle)) { |
| 132 | // only one is allowed. |
| 133 | if (retval != -1) |
| 134 | return -1; |
| 135 | retval = i; |
| 136 | } |
| 137 | } |
| 138 | return retval; |
| 139 | } |
| 140 | |
| 141 | void LaunchProfile::applyMods(const QList<LibraryPtr>& mods) |
| 142 | { |
no test coverage detected