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:
Klaus Basan
2016-03-30 16:35:35 +02:00
parent fe677a5594
commit 126ad26261
3 changed files with 6 additions and 7 deletions

View File

@@ -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; }

View File

@@ -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);

View File

@@ -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"