Formatting, minor tweaks

This commit is contained in:
Klaus Basan
2017-07-04 23:05:57 +02:00
committed by Mathew Sutcliffe
parent a1e16ea162
commit 3780bc18e0
4 changed files with 5 additions and 7 deletions

View File

@@ -85,7 +85,7 @@ namespace BlackCore
void CAirspaceAnalyzer::gracefulShutdown()
{
bool s = QMetaObject::invokeMethod(&m_timer, "stop");
const bool s = QMetaObject::invokeMethod(&m_timer, "stop");
Q_ASSERT_X(s, Q_FUNC_INFO, "invoke failed");
Q_UNUSED(s);
}

View File

@@ -137,6 +137,7 @@ namespace BlackGui
static const QString &pathStashEditor() { static const QString p("Custom.13.Stash/Editor"); return p; }
//! vPilot data
//! \deprecated vPilot functionality likely to be removed in the future
static const QString &pathVPilot() { static const QString p("Custom.14.vPilot/vPilot"); return p; }
//! Log functionality

View File

@@ -63,7 +63,7 @@ namespace BlackSimPlugin
HRESULT directPlayMessageHandler(DWORD messageId, void *msgBuffer);
//! Initialize DirectPlay
HRESULT initDirectPlay();
HRESULT initDirectPlay();
//! Returns true of the service provider is a valid on this machine
bool isServiceProviderValid(const GUID *pGuidSP);

View File

@@ -109,10 +109,7 @@ void CSwiftData::init()
const CGlobalSetup s(sApp->getGlobalSetup());
if (!s.getDbHomePageUrl().isEmpty())
{
QString t(this->windowTitle());
t += " ";
t += s.getDbHomePageUrl().toQString(true);
this->setWindowTitle(t);
this->setWindowTitle(QString("%1 %2").arg(this->windowTitle(), s.getDbHomePageUrl().toQString(true)));
}
sGui->triggerNewVersionCheck(10 * 1000);
@@ -158,7 +155,7 @@ void CSwiftData::performGracefulShutdown()
void CSwiftData::consolidationSettingChanged()
{
int consolidationSecs = m_consolidationSettings.get();
const int consolidationSecs = m_consolidationSettings.get();
if (consolidationSecs < 0)
{
if (m_updater)