mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +08:00
refs #618, clang fixes
* use own default constructor error: default initialization of an object of const type 'const BlackMisc::CIcon' without a user-provided default constructor static const CIcon empty; * same for CDbOwnModelsComponent() * fixed guard
This commit is contained in:
@@ -35,6 +35,9 @@ namespace BlackGui
|
|||||||
IndexLastSimulator = BlackMisc::CPropertyIndex::GlobalIndexCDbOwnModelsComponent
|
IndexLastSimulator = BlackMisc::CPropertyIndex::GlobalIndexCDbOwnModelsComponent
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//! Constructor
|
||||||
|
CDbOwnModelsComponent() {}
|
||||||
|
|
||||||
//! Simulator last selected
|
//! Simulator last selected
|
||||||
const BlackMisc::Simulation::CSimulatorInfo &getLastSimulatorSelection() const { return m_simulator; }
|
const BlackMisc::Simulation::CSimulatorInfo &getLastSimulatorSelection() const { return m_simulator; }
|
||||||
|
|
||||||
|
|||||||
@@ -23,11 +23,7 @@
|
|||||||
namespace BlackMisc
|
namespace BlackMisc
|
||||||
{
|
{
|
||||||
class CIcon;
|
class CIcon;
|
||||||
|
namespace PhysicalQuantities { class CAngle; }
|
||||||
namespace PhysicalQuantities
|
|
||||||
{
|
|
||||||
class CAngle;
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace Mixin
|
namespace Mixin
|
||||||
{
|
{
|
||||||
@@ -73,7 +69,7 @@ namespace BlackMisc
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
//! Default constructor.
|
//! Default constructor.
|
||||||
CIcon() = default;
|
CIcon() {}
|
||||||
|
|
||||||
//! Constructor.
|
//! Constructor.
|
||||||
CIcon(CIcons::IconIndex index, const QString &descriptiveText);
|
CIcon(CIcons::IconIndex index, const QString &descriptiveText);
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
//! \file
|
//! \file
|
||||||
|
|
||||||
#ifndef BLACKMISC_SIMULATION_AIRCRAFTMODELSETLOADER_H
|
#ifndef BLACKMISC_SIMULATION_AIRCRAFTMODELSETLOADER_H
|
||||||
#define BLACKMISC_SIMULATION_AIRCRAFTMODESETLLOADER_H
|
#define BLACKMISC_SIMULATION_AIRCRAFTMODELSETLOADER_H
|
||||||
|
|
||||||
#include "blackmisc/blackmiscexport.h"
|
#include "blackmisc/blackmiscexport.h"
|
||||||
#include "blackmisc/simulation/aircraftmodellist.h"
|
#include "blackmisc/simulation/aircraftmodellist.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user