No BLACK_VERIFY if base url function

This commit is contained in:
Klaus Basan
2018-07-27 04:19:27 +02:00
parent 1746388560
commit e1c7edb24d
2 changed files with 2 additions and 4 deletions

View File

@@ -247,7 +247,7 @@ namespace BlackCore
if (entity.testFlag(CEntityFlags::AirportEntity)) if (entity.testFlag(CEntityFlags::AirportEntity))
{ {
CUrl url = getAirportsUrl(mode); CUrl url = this->getAirportsUrl(mode);
if (!url.isEmpty()) if (!url.isEmpty())
{ {
url.appendQuery(queryLatestTimestamp(newerThan)); url.appendQuery(queryLatestTimestamp(newerThan));

View File

@@ -504,9 +504,7 @@ namespace BlackCore
CUrl CDatabaseReader::getBaseUrl(CDbFlags::DataRetrievalModeFlag mode) const CUrl CDatabaseReader::getBaseUrl(CDbFlags::DataRetrievalModeFlag mode) const
{ {
BLACK_VERIFY_X(sApp, Q_FUNC_INFO, "Missing app object, URLs cannot be obtained"); if (!sApp || sApp->isShuttingDown()) { return CUrl(); }
if (!sApp) { return CUrl(); }
switch (mode) switch (mode)
{ {
case CDbFlags::DbReading: case CDbFlags::DbReading: