use empty() instead of comparisons
This commit is contained in:
		
							parent
							
								
									4c6f85fd25
								
							
						
					
					
						commit
						e91b75a1bb
					
				| @ -62,7 +62,7 @@ public: | ||||
|         //json
 | ||||
| 
 | ||||
| //        JSONParameter = routeParameters.options.Find("jsonp");
 | ||||
|         if("" != routeParameters.jsonpParameter) { | ||||
|         if(!routeParameters.jsonpParameter.empty()) { | ||||
|             reply.content += routeParameters.jsonpParameter; | ||||
|             reply.content += "("; | ||||
|         } | ||||
| @ -88,7 +88,7 @@ public: | ||||
|         reply.content += ",\"transactionId\": \"OSRM Routing Engine JSON Locate (v0.3)\""; | ||||
|         reply.content += ("}"); | ||||
|         reply.headers.resize(3); | ||||
|         if("" != routeParameters.jsonpParameter) { | ||||
|         if(!routeParameters.jsonpParameter.empty()) { | ||||
|             reply.content += ")"; | ||||
|             reply.headers[1].name = "Content-Type"; | ||||
|             reply.headers[1].value = "text/javascript"; | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user