mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-15 09:15:34 +08:00
No BLACK_VERIFY if base url function
This commit is contained in:
@@ -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));
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user