Source
60
60
defaultDatabasePath.replace(index, tableNameSize, "splatalogue.db");
61
61
}
62
62
}
63
63
return defaultDatabasePath;
64
64
}
65
65
66
66
Searcher* SearcherFactory::getSearcher( bool local ){
67
67
Searcher* searcher = NULL;
68
68
if ( local ){
69
69
String defaultDatabasePath = getLocation( local );
70
-
if ( ! defaultDatabasePath.length() == 0 ){
70
+
if (! defaultDatabasePath.empty()){
71
71
searcher = new SearcherSQLite(defaultDatabasePath.c_str() );
72
72
if ( !searcher->isConnected()){
73
73
delete searcher;
74
74
searcher = NULL;
75
75
}
76
76
}
77
77
}
78
78
else {
79
79
cout << "Only local database searches are currently supported"<<endl;
80
80
}