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