@@ -208,13 +208,13 @@ bool GeoTools::GeocodeDeveloper(const wxString& address, double* lat, double* lo
208208 }
209209
210210 rapidjson::Document reader;
211- wxString str = curl.GetDataAsString ();
211+ // wxString str = curl.GetDataAsString();
212212
213213 // str.Replace("\"", "\\\"");
214214
215- std::string stdstr = str .ToStdString ();
215+ std::string str = curl. GetDataAsString () .ToStdString ();
216216
217- wxMessageBox (stdstr , " geocode developer URL return string" );
217+ wxMessageBox ((wxString)str , " geocode developer URL return string" );
218218
219219
220220// rapidjson::StringStream is(str.c_str());
@@ -224,7 +224,7 @@ bool GeoTools::GeocodeDeveloper(const wxString& address, double* lat, double* lo
224224
225225// rapidjson::ParseResult ok = reader.Parse((const char*)str.c_str());
226226// rapidjson::ParseResult ok = reader.ParseStream(is);
227- rapidjson::ParseResult ok = reader.Parse <0 >(stdstr .c_str ());
227+ rapidjson::ParseResult ok = reader.Parse <0 >(str .c_str ());
228228
229229
230230 /*
@@ -361,7 +361,7 @@ bool GeoTools::GeocodeDeveloper(const wxString& address, double* lat, double* lo
361361
362362 if (reader.HasMember (" statusDescription" )) {
363363 if (reader[" statusDescription" ].IsString ()) {
364- str = reader[" statusDescription" ].GetString ();
364+ wxString str = reader[" statusDescription" ].GetString ();
365365 success = str.Lower () == " ok" ;
366366 }
367367 }
0 commit comments