Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

Commit

Permalink
Fix shadowing
Browse files Browse the repository at this point in the history
  • Loading branch information
Shatur committed Jan 25, 2023
1 parent 53473f6 commit c964a31
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/qonlinetranslator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1310,11 +1310,11 @@ void QOnlineTranslator::parseGoogleTranslate()

// Examples
if (m_examplesEnabled) {
for (const QJsonValueRef exampleData : jsonData.at(12).toArray()) {
const QJsonArray exampleDataArray = exampleData.toArray();
const QString typeOfSpeech = exampleDataArray.at(0).toString();
for (const QJsonValueRef examplesData : jsonData.at(12).toArray()) {
const QJsonArray examplesDataArray = examplesData.toArray();
const QString typeOfSpeech = examplesDataArray.at(0).toString();

for (const QJsonValueRef exampleData : exampleDataArray.at(1).toArray()) {
for (const QJsonValueRef exampleData : examplesDataArray.at(1).toArray()) {
const QJsonArray exampleArray = exampleData.toArray();
const QString example = exampleArray.at(2).toString();
const QString definition = exampleArray.at(0).toString();
Expand Down

0 comments on commit c964a31

Please sign in to comment.