forked from qt-creator/qt-creator
Fix crazy warning about non-const ref iterator in Android.
Change-Id: I7195ef05160f0af26143f81fbe744b3186f16df8 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -205,7 +205,7 @@ static void parseSharedLibs(const QByteArray &buffer, QStringList *libs)
|
||||
#else
|
||||
QList<QByteArray> lines = buffer.trimmed().split('\n');
|
||||
#endif
|
||||
foreach (QByteArray line, lines) {
|
||||
foreach (const QByteArray &line, lines) {
|
||||
if (line.contains("(NEEDED)") && line.contains("Shared library:") ) {
|
||||
const int pos = line.lastIndexOf('[') + 1;
|
||||
(*libs) << QString::fromLatin1(line.mid(pos, line.length() - pos - 1));
|
||||
|
||||
Reference in New Issue
Block a user