mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
Formatting
This commit is contained in:
committed by
Mathew Sutcliffe
parent
420e80a437
commit
6ebbf58f79
@@ -1229,7 +1229,7 @@ namespace BlackCore
|
||||
{
|
||||
// Called when finished!
|
||||
// QNetworkRequest::FollowRedirectsAttribute would allow auto redirect, but we use our approach as it gives us better control
|
||||
// \fixme: Check again on Qt 5.9: Added redirects policy to QNetworkAccessManager (ManulRedirectsPolicy, NoLessSafeRedirectsPolicy, SameOriginRedirectsPolicy, UserVerifiedRedirectsPolicy)
|
||||
// \fixme: Check again on Qt 5.9: Added redirects policy to QNetworkAccessManager (ManualRedirectsPolicy, NoLessSafeRedirectsPolicy, SameOriginRedirectsPolicy, UserVerifiedRedirectsPolicy)
|
||||
const bool isRedirect = CNetworkUtils::isHttpStatusRedirect(reply);
|
||||
if (isRedirect && maxRedirects > 0)
|
||||
{
|
||||
|
||||
@@ -153,7 +153,7 @@ namespace BlackCore
|
||||
//! \threadsafe
|
||||
BlackMisc::Db::CDistributionList getDistributionInfo() const;
|
||||
|
||||
//! Delete all cookies from cookier manager
|
||||
//! Delete all cookies from cookie manager
|
||||
void deleteAllCookies();
|
||||
|
||||
//! Network accessible?
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include "application.h"
|
||||
#include "modelsetbuilder.h"
|
||||
#include "webdataservices.h"
|
||||
#include "db/databaseutils.h"
|
||||
#include "blackcore/db/databaseutils.h"
|
||||
#include "blackmisc/aviation/aircrafticaocodelist.h"
|
||||
#include "blackmisc/simulation/aircraftmodel.h"
|
||||
|
||||
|
||||
@@ -22,9 +22,7 @@ namespace BlackGui
|
||||
{
|
||||
Q_UNUSED(i18n);
|
||||
static const QString s("In range only: %1");
|
||||
return s.arg(
|
||||
boolToOnOff(this->showOnlyInRange())
|
||||
);
|
||||
return s.arg(boolToOnOff(this->showOnlyInRange()));
|
||||
}
|
||||
|
||||
CVariant CAtcStationsSettings::propertyByIndex(const CPropertyIndex &index) const
|
||||
|
||||
@@ -22,13 +22,11 @@
|
||||
#include <QUrl>
|
||||
#include <QByteArray>
|
||||
#include <QNetworkReply>
|
||||
#include <QNetworkAccessManager>
|
||||
#include <QPointer>
|
||||
#include <array>
|
||||
|
||||
class QNetworkAccessManager;
|
||||
|
||||
namespace BlackMisc { namespace PhysicalQuantities { class CTemperature; }}
|
||||
|
||||
namespace BlackWxPlugin
|
||||
{
|
||||
namespace Gfs
|
||||
@@ -45,7 +43,7 @@ namespace BlackWxPlugin
|
||||
CWeatherDataGfs(QObject *parent = nullptr);
|
||||
|
||||
//! Destructor
|
||||
~CWeatherDataGfs();
|
||||
virtual ~CWeatherDataGfs();
|
||||
|
||||
//! \copydoc BlackCore::IWeatherData::fetchWeatherData
|
||||
virtual void fetchWeatherData(const BlackMisc::Weather::CWeatherGrid &grid,
|
||||
@@ -59,6 +57,7 @@ namespace BlackWxPlugin
|
||||
//! \threadsafe
|
||||
void ps_fetchingWeatherDataFinished();
|
||||
|
||||
//! Parsing
|
||||
void ps_parseGfsFile(QNetworkReply *reply);
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user