Skip to content

Commit 5bfdf14

Browse files
committed
update parsing flags for linux #1968
1 parent 064bcc7 commit 5bfdf14

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/geotools.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,18 +210,21 @@ bool GeoTools::GeocodeDeveloper(const wxString& address, double* lat, double* lo
210210
rapidjson::Document reader;
211211
wxString str = curl.GetDataAsString();
212212

213-
str.Replace("\"", "\\\"");
213+
// str.Replace("\"", "\\\"");
214214

215-
wxMessageBox(str, "geocode developer URL return string");
215+
std::string stdstr = str.ToStdString();
216+
217+
wxMessageBox(stdstr, "geocode developer URL return string");
216218

217219

218-
rapidjson::StringStream is(str.c_str());
220+
// rapidjson::StringStream is(str.c_str());
219221

220222
// doc.ParseStream(is);
221223

222224

223225
// rapidjson::ParseResult ok = reader.Parse((const char*)str.c_str());
224-
rapidjson::ParseResult ok = reader.ParseStream(is);
226+
// rapidjson::ParseResult ok = reader.ParseStream(is);
227+
rapidjson::ParseResult ok = reader.Parse<0>(stdstr.c_str());
225228

226229

227230
/*

0 commit comments

Comments
 (0)