From cc94ab64116c828d9ed65cd4d766e7fd872d530b Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Thu, 19 Sep 2013 10:19:54 +0200 Subject: [PATCH] use empty() instead of comparisons --- Plugins/LocatePlugin.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/LocatePlugin.h b/Plugins/LocatePlugin.h index ac559451f..6f233a352 100644 --- a/Plugins/LocatePlugin.h +++ b/Plugins/LocatePlugin.h @@ -55,7 +55,7 @@ public: //json // JSONParameter = routeParameters.options.Find("jsonp"); - if("" != routeParameters.jsonpParameter) { + if(!routeParameters.jsonpParameter.empty()) { reply.content += routeParameters.jsonpParameter; reply.content += "("; } @@ -81,7 +81,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";