Changeset View
Changeset View
Standalone View
Standalone View
src/externalextractor.cpp
Show First 20 Lines • Show All 141 Lines • ▼ Show 20 Line(s) | 106 | { | |||
---|---|---|---|---|---|
142 | 142 | | |||
143 | QJsonDocument extractorData = QJsonDocument::fromJson(output); | 143 | QJsonDocument extractorData = QJsonDocument::fromJson(output); | ||
144 | if (!extractorData.isObject()) { | 144 | if (!extractorData.isObject()) { | ||
145 | return; | 145 | return; | ||
146 | } | 146 | } | ||
147 | QJsonObject rootObject = extractorData.object(); | 147 | QJsonObject rootObject = extractorData.object(); | ||
148 | QJsonObject propertiesObject = rootObject[QStringLiteral("properties")].toObject(); | 148 | QJsonObject propertiesObject = rootObject[QStringLiteral("properties")].toObject(); | ||
149 | 149 | | |||
150 | Q_FOREACH(const auto &key, propertiesObject.keys()) { | 150 | const auto lstKeys = propertiesObject.keys(); | ||
151 | for(const auto &key : lstKeys) { | ||||
astippich: missing space: for ( | |||||
151 | if (key == QStringLiteral("typeInfo")) { | 152 | if (key == QStringLiteral("typeInfo")) { | ||
152 | TypeInfo info = TypeInfo::fromName(propertiesObject.value(key).toString()); | 153 | TypeInfo info = TypeInfo::fromName(propertiesObject.value(key).toString()); | ||
153 | result->addType(info.type()); | 154 | result->addType(info.type()); | ||
154 | continue; | 155 | continue; | ||
155 | } | 156 | } | ||
156 | 157 | | |||
157 | // for plaintext extraction | 158 | // for plaintext extraction | ||
158 | if (key == QStringLiteral("text")) { | 159 | if (key == QStringLiteral("text")) { | ||
Show All 15 Lines |
missing space: for (