From beb9c1ba74306c168038ecf1860cd5609bfc3b94 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Tue, 13 Aug 2013 18:37:21 +0200 Subject: [PATCH] use proper check for empty string --- Server/DataStructures/QueryObjectsStorage.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Server/DataStructures/QueryObjectsStorage.cpp b/Server/DataStructures/QueryObjectsStorage.cpp index 393fd1bf7..27a906312 100644 --- a/Server/DataStructures/QueryObjectsStorage.cpp +++ b/Server/DataStructures/QueryObjectsStorage.cpp @@ -30,22 +30,22 @@ QueryObjectsStorage::QueryObjectsStorage( const std::string & namesPath, const std::string & timestampPath ) { - if("" == hsgrPath) { + if( hsgrPath.empty() ) { throw OSRMException("no hsgr file given in ini file"); } - if("" == ramIndexPath) { + if( ramIndexPath.empty() ) { throw OSRMException("no ram index file given in ini file"); } - if("" == fileIndexPath) { + if( fileIndexPath.empty() ) { throw OSRMException("no mem index file given in ini file"); } - if("" == nodesPath) { + if( nodesPath.empty() ) { throw OSRMException("no nodes file given in ini file"); } - if("" == edgesPath) { + if( edgesPath.empty() ) { throw OSRMException("no edges file given in ini file"); } - if("" == namesPath) { + if( namesPath.empty() ) { throw OSRMException("no names file given in ini file"); }