mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-02 15:15:39 +08:00
Formatting, typos
This commit is contained in:
committed by
Mathew Sutcliffe
parent
15b8363e30
commit
23b310ac9b
@@ -137,7 +137,7 @@ namespace BlackCore
|
|||||||
bool m_dbDebugFlag = false; //!< can trigger DEBUG on the server, so you need to know hat you are doing
|
bool m_dbDebugFlag = false; //!< can trigger DEBUG on the server, so you need to know hat you are doing
|
||||||
};
|
};
|
||||||
|
|
||||||
//! Trait for for global setup data
|
//! Trait for global setup data
|
||||||
struct GlobalSetup : public BlackCore::CDataTrait<CGlobalSetup>
|
struct GlobalSetup : public BlackCore::CDataTrait<CGlobalSetup>
|
||||||
{
|
{
|
||||||
//! Key in data cache
|
//! Key in data cache
|
||||||
@@ -146,8 +146,8 @@ namespace BlackCore
|
|||||||
//! Default value
|
//! Default value
|
||||||
static const CGlobalSetup &defaultValue()
|
static const CGlobalSetup &defaultValue()
|
||||||
{
|
{
|
||||||
static const CGlobalSetup urls;
|
static const CGlobalSetup gs;
|
||||||
return urls;
|
return gs;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -33,10 +33,9 @@ namespace BlackGui
|
|||||||
QWidgetList tlw = topLevelApplicationWidgetsWithName();
|
QWidgetList tlw = topLevelApplicationWidgetsWithName();
|
||||||
for (QWidget *w : tlw)
|
for (QWidget *w : tlw)
|
||||||
{
|
{
|
||||||
// best coice is to check on frameless window
|
// best choice is to check on frameless window
|
||||||
CEnableForFramelessWindow *mw = dynamic_cast<CEnableForFramelessWindow *>(w);
|
CEnableForFramelessWindow *mw = dynamic_cast<CEnableForFramelessWindow *>(w);
|
||||||
if (mw && mw->isMainApplicationWindow()) { return mw; }
|
if (mw && mw->isMainApplicationWindow()) { return mw; }
|
||||||
|
|
||||||
}
|
}
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -219,6 +219,5 @@ namespace BlackMisc
|
|||||||
CNetworkUtils::ignoreSslVerification(request);
|
CNetworkUtils::ignoreSslVerification(request);
|
||||||
return request;
|
return request;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
} // namespacee
|
} // namespacee
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ namespace BlackMisc
|
|||||||
static QNetworkRequest getNetworkRequest(const CUrl &url, RequestType type = Get);
|
static QNetworkRequest getNetworkRequest(const CUrl &url, RequestType type = Get);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
//! Deleted constructor
|
//! Hidden constructor
|
||||||
CNetworkUtils() {}
|
CNetworkUtils() {}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -37,7 +37,6 @@ namespace BlackMisc
|
|||||||
|
|
||||||
//! Construct from a base class object.
|
//! Construct from a base class object.
|
||||||
CUserList(const CSequence &other);
|
CUserList(const CSequence &other);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} //namespace
|
} //namespace
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ namespace BlackMisc
|
|||||||
bool success = this->m_vPilotReader->read(false);
|
bool success = this->m_vPilotReader->read(false);
|
||||||
if (success)
|
if (success)
|
||||||
{
|
{
|
||||||
this->m_datastoreModels = this->m_vPilotReader->getRules().toAircraftModels();
|
this->m_datastoreModels = this->m_vPilotReader->getRules().toAircraftModels();
|
||||||
}
|
}
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ namespace BlackMisc
|
|||||||
int m_loadedFiles = 0; //!< loaded files
|
int m_loadedFiles = 0; //!< loaded files
|
||||||
CVPilotModelRuleSet m_rules; //!< rules list
|
CVPilotModelRuleSet m_rules; //!< rules list
|
||||||
bool m_asyncLoadInProgress = false; //!< Asynchronous load in progress
|
bool m_asyncLoadInProgress = false; //!< Asynchronous load in progress
|
||||||
bool m_shutdown = false; //!< Shutdown
|
bool m_shutdown = false; //!< Shutdown
|
||||||
mutable BlackMisc::Simulation::CAircraftModelList m_models; //!< converted to models
|
mutable BlackMisc::Simulation::CAircraftModelList m_models; //!< converted to models
|
||||||
mutable QReadWriteLock m_lockData;
|
mutable QReadWriteLock m_lockData;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user