History

changed api key variable name

Elisa Lupin-Jimenez committed 8 years ago

Commit 84933131 parent a428eb52 files · +4 −4Browse files

Showing the changes to interface/src/scripting/GooglePolyScriptingInterface.cpp (1 of 2 files). Show all

Unified · Split

interface/src/scripting/GooglePolyScriptingInterface.cpp+3−3
@@ -37,7 +37,7 @@ GooglePolyScriptingInterface::GooglePolyScriptingInterface() { · 36 unmodified lines
3737 }
3838
3939 void GooglePolyScriptingInterface::setAPIKey(const QString& key) {
40− authCode = key;
40+ _authCode = key;
4141 }
4242
4343 QString GooglePolyScriptingInterface::getAssetList(const QString& keyword, const QString& category, const QString& format) {
@@ -94,7 +94,7 @@ QString GooglePolyScriptingInterface::getModelInfo(const QString& input) { · 50 unmodified lines
9494 }
9595 }
9696 QString urlString(GET_POLY_URL);
97− urlString = urlString.replace("model", name) + "key=" + authCode;
97+ urlString = urlString.replace("model", name) + "key=" + _authCode;
9898 qCDebug(scriptengine) << "Google URL request: " << urlString;
9999 QUrl url(urlString);
100100 QString json = parseJSON(url, 2).toString();
@@ -123,7 +123,7 @@ QUrl GooglePolyScriptingInterface::formatURLQuery(const QString& keyword, const · 22 unmodified lines
123123 if (!format.isEmpty()) {
124124 queries.append("&format=" + format);
125125 }
126− QString urlString(LIST_POLY_URL + "key=" + authCode + queries);
126+ QString urlString(LIST_POLY_URL + "key=" + _authCode + queries);
127127 return QUrl(urlString);
128128 }
129129 }