Replace some empty constructors and destructors with default

macos_ci
Evil Eye 2 years ago
parent 4399748889
commit 9214ffb50b

@ -34,7 +34,7 @@ namespace EsmTool
{ {
} }
virtual ~RecordBase() {} virtual ~RecordBase() = default;
virtual std::string getId() const = 0; virtual std::string getId() const = 0;

@ -56,7 +56,7 @@ namespace ESSImport
/// @return the order for writing this converter's records to the output file, in relation to other converters /// @return the order for writing this converter's records to the output file, in relation to other converters
virtual int getStage() { return 1; } virtual int getStage() { return 1; }
virtual ~Converter() {} virtual ~Converter() = default;
void setContext(Context& context) { mContext = &context; } void setContext(Context& context) { mContext = &context; }

@ -43,8 +43,6 @@ Launcher::TextInputDialog::TextInputDialog(const QString& title, const QString&
connect(mButtonBox, &QDialogButtonBox::rejected, this, &TextInputDialog::reject); connect(mButtonBox, &QDialogButtonBox::rejected, this, &TextInputDialog::reject);
} }
Launcher::TextInputDialog::~TextInputDialog() {}
int Launcher::TextInputDialog::exec() int Launcher::TextInputDialog::exec()
{ {
mLineEdit->clear(); mLineEdit->clear();

@ -15,7 +15,7 @@ namespace Launcher
public: public:
explicit TextInputDialog(const QString& title, const QString& text, QWidget* parent = nullptr); explicit TextInputDialog(const QString& title, const QString& text, QWidget* parent = nullptr);
~TextInputDialog() override; ~TextInputDialog() override = default;
inline LineEdit* lineEdit() { return mLineEdit; } inline LineEdit* lineEdit() { return mLineEdit; }
void setOkButtonEnabled(bool enabled); void setOkButtonEnabled(bool enabled);

@ -9,7 +9,7 @@ opencs_units (model/doc
) )
opencs_units (model/doc opencs_units (model/doc
stage savingstate savingstages blacklist messages savingstate savingstages blacklist messages
) )
opencs_hdrs (model/doc opencs_hdrs (model/doc
@ -25,7 +25,7 @@ opencs_units (model/world
opencs_units (model/world opencs_units (model/world
universalid record commands columnbase columnimp scriptcontext cell refidcollection universalid record commands columnbase columnimp scriptcontext cell refidcollection
refidadapter refiddata refidadapterimp ref collectionbase refcollection columns infocollection tablemimedata cellcoordinates cellselection resources resourcesmanager scope refiddata refidadapterimp ref collectionbase refcollection columns infocollection tablemimedata cellcoordinates cellselection resources resourcesmanager scope
pathgrid landtexture land nestedtablewrapper nestedcollection nestedcoladapterimp nestedinfocollection pathgrid landtexture land nestedtablewrapper nestedcollection nestedcoladapterimp nestedinfocollection
idcompletionmanager metadata defaultgmsts infoselectwrapper commandmacro idcompletionmanager metadata defaultgmsts infoselectwrapper commandmacro
) )
@ -124,7 +124,7 @@ opencs_units (model/prefs
) )
opencs_units (model/filter opencs_units (model/filter
node unarynode narynode leafnode booleannode parser andnode ornode notnode textnode valuenode unarynode narynode leafnode booleannode parser andnode ornode notnode textnode valuenode
) )
opencs_units (view/filter opencs_units (view/filter

@ -361,8 +361,6 @@ CSMDoc::Document::Document(const Files::ConfigurationManager& configuration, std
connect(&mRunner, &Runner::runStateChanged, this, &Document::runStateChanged); connect(&mRunner, &Runner::runStateChanged, this, &Document::runStateChanged);
} }
CSMDoc::Document::~Document() {}
QUndoStack& CSMDoc::Document::getUndoStack() QUndoStack& CSMDoc::Document::getUndoStack()
{ {
return mUndoStack; return mUndoStack;

@ -98,7 +98,7 @@ namespace CSMDoc
const std::vector<std::string>& blacklistedScripts, bool fsStrict, const Files::PathContainer& dataPaths, const std::vector<std::string>& blacklistedScripts, bool fsStrict, const Files::PathContainer& dataPaths,
const std::vector<std::string>& archives); const std::vector<std::string>& archives);
~Document(); ~Document() override = default;
QUndoStack& getUndoStack(); QUndoStack& getUndoStack();

@ -1,3 +0,0 @@
#include "stage.hpp"
CSMDoc::Stage::~Stage() {}

@ -7,7 +7,7 @@ namespace CSMDoc
class Stage class Stage
{ {
public: public:
virtual ~Stage(); virtual ~Stage() = default;
virtual int setup() = 0; virtual int setup() = 0;
///< \return number of steps ///< \return number of steps

@ -1,5 +0,0 @@
#include "node.hpp"
CSMFilter::Node::Node() {}
CSMFilter::Node::~Node() {}

@ -21,14 +21,11 @@ namespace CSMFilter
/// interpreted as "the node and all its children". /// interpreted as "the node and all its children".
class Node class Node
{ {
// not implemented
Node(const Node&);
Node& operator=(const Node&);
public: public:
Node(); Node() = default;
Node(const Node&) = delete;
virtual ~Node(); Node& operator=(const Node&) = delete;
virtual ~Node() = default;
virtual bool test(const CSMWorld::IdTableBase& table, int row, const std::map<int, int>& columns) const = 0; virtual bool test(const CSMWorld::IdTableBase& table, int row, const std::map<int, int>& columns) const = 0;
///< \return Can the specified table row pass through to filter? ///< \return Can the specified table row pass through to filter?

@ -23,8 +23,6 @@ CSMPrefs::Setting::Setting(Category* parent, QMutex* mutex, const std::string& k
{ {
} }
CSMPrefs::Setting::~Setting() {}
std::pair<QWidget*, QWidget*> CSMPrefs::Setting::makeWidgets(QWidget* parent) std::pair<QWidget*, QWidget*> CSMPrefs::Setting::makeWidgets(QWidget* parent)
{ {
return std::pair<QWidget*, QWidget*>(0, 0); return std::pair<QWidget*, QWidget*>(0, 0);

@ -29,7 +29,7 @@ namespace CSMPrefs
public: public:
Setting(Category* parent, QMutex* mutex, const std::string& key, const std::string& label); Setting(Category* parent, QMutex* mutex, const std::string& key, const std::string& label);
virtual ~Setting(); ~Setting() override = default;
/// Return label, input widget. /// Return label, input widget.
/// ///

@ -98,10 +98,6 @@ namespace CSMWorld
std::map<ESM::RefId, int> mIndex; std::map<ESM::RefId, int> mIndex;
std::vector<Column<ESXRecordT>*> mColumns; std::vector<Column<ESXRecordT>*> mColumns;
// not implemented
Collection(const Collection&);
Collection& operator=(const Collection&);
protected: protected:
const std::vector<std::unique_ptr<Record<ESXRecordT>>>& getRecords() const; const std::vector<std::unique_ptr<Record<ESXRecordT>>>& getRecords() const;
@ -120,7 +116,9 @@ namespace CSMWorld
///< Returns the index of the record on success, -1 on failure. ///< Returns the index of the record on success, -1 on failure.
public: public:
Collection(); Collection() = default;
Collection(const Collection&) = delete;
Collection& operator=(const Collection&) = delete;
~Collection() override; ~Collection() override;
@ -342,11 +340,6 @@ namespace CSMWorld
return false; return false;
} }
template <typename ESXRecordT>
Collection<ESXRecordT>::Collection()
{
}
template <typename ESXRecordT> template <typename ESXRecordT>
Collection<ESXRecordT>::~Collection() Collection<ESXRecordT>::~Collection()
{ {

@ -7,10 +7,6 @@
#include "columnbase.hpp" #include "columnbase.hpp"
CSMWorld::CollectionBase::CollectionBase() {}
CSMWorld::CollectionBase::~CollectionBase() {}
int CSMWorld::CollectionBase::getInsertIndex(const ESM::RefId& id, UniversalId::Type type, RecordBase* record) const int CSMWorld::CollectionBase::getInsertIndex(const ESM::RefId& id, UniversalId::Type type, RecordBase* record) const
{ {
return getAppendIndex(id, type); return getAppendIndex(id, type);

@ -29,14 +29,11 @@ namespace CSMWorld
/// manually. /// manually.
class CollectionBase class CollectionBase
{ {
// not implemented
CollectionBase(const CollectionBase&);
CollectionBase& operator=(const CollectionBase&);
public: public:
CollectionBase(); CollectionBase() = default;
CollectionBase(const CollectionBase&) = delete;
virtual ~CollectionBase(); CollectionBase& operator=(const CollectionBase&) = delete;
virtual ~CollectionBase() = default;
virtual int getSize() const = 0; virtual int getSize() const = 0;

@ -11,8 +11,6 @@ CSMWorld::ColumnBase::ColumnBase(int columnId, Display displayType, int flags)
{ {
} }
CSMWorld::ColumnBase::~ColumnBase() {}
bool CSMWorld::ColumnBase::isUserEditable() const bool CSMWorld::ColumnBase::isUserEditable() const
{ {
return isEditable(); return isEditable();

@ -156,7 +156,7 @@ namespace CSMWorld
ColumnBase(int columnId, Display displayType, int flag); ColumnBase(int columnId, Display displayType, int flag);
virtual ~ColumnBase(); virtual ~ColumnBase() = default;
virtual bool isEditable() const = 0; virtual bool isEditable() const = 0;

@ -314,8 +314,6 @@ CSMWorld::RevertCommand::RevertCommand(IdTable& model, const std::string& id, QU
setText(("Revert record " + id).c_str()); setText(("Revert record " + id).c_str());
} }
CSMWorld::RevertCommand::~RevertCommand() {}
void CSMWorld::RevertCommand::redo() void CSMWorld::RevertCommand::redo()
{ {
mOld = mModel.getRecord(mId).clone(); mOld = mModel.getRecord(mId).clone();
@ -351,8 +349,6 @@ CSMWorld::DeleteCommand::DeleteCommand(
setText(("Delete record " + id).c_str()); setText(("Delete record " + id).c_str());
} }
CSMWorld::DeleteCommand::~DeleteCommand() {}
void CSMWorld::DeleteCommand::redo() void CSMWorld::DeleteCommand::redo()
{ {
mOld = mModel.getRecord(mId).clone(); mOld = mModel.getRecord(mId).clone();

@ -192,7 +192,7 @@ namespace CSMWorld
public: public:
RevertCommand(IdTable& model, const std::string& id, QUndoCommand* parent = nullptr); RevertCommand(IdTable& model, const std::string& id, QUndoCommand* parent = nullptr);
virtual ~RevertCommand(); ~RevertCommand() override = default;
void redo() override; void redo() override;
@ -214,7 +214,7 @@ namespace CSMWorld
DeleteCommand(IdTable& model, const std::string& id, UniversalId::Type type = UniversalId::Type_None, DeleteCommand(IdTable& model, const std::string& id, UniversalId::Type type = UniversalId::Type_None,
QUndoCommand* parent = nullptr); QUndoCommand* parent = nullptr);
virtual ~DeleteCommand(); ~DeleteCommand() override = default;
void redo() override; void redo() override;

@ -29,8 +29,6 @@ CSMWorld::IdTable::IdTable(CollectionBase* idCollection, unsigned int features)
{ {
} }
CSMWorld::IdTable::~IdTable() {}
int CSMWorld::IdTable::rowCount(const QModelIndex& parent) const int CSMWorld::IdTable::rowCount(const QModelIndex& parent) const
{ {
if (parent.isValid()) if (parent.isValid())

@ -36,7 +36,7 @@ namespace CSMWorld
IdTable(CollectionBase* idCollection, unsigned int features = 0); IdTable(CollectionBase* idCollection, unsigned int features = 0);
///< The ownership of \a idCollection is not transferred. ///< The ownership of \a idCollection is not transferred.
virtual ~IdTable(); virtual ~IdTable() = default;
int rowCount(const QModelIndex& parent = QModelIndex()) const override; int rowCount(const QModelIndex& parent = QModelIndex()) const override;

@ -18,8 +18,6 @@ CSMWorld::IdTree::IdTree(NestedCollection* nestedCollection, CollectionBase* idC
{ {
} }
CSMWorld::IdTree::~IdTree() {}
int CSMWorld::IdTree::rowCount(const QModelIndex& parent) const int CSMWorld::IdTree::rowCount(const QModelIndex& parent) const
{ {
if (hasChildren(parent)) if (hasChildren(parent))

@ -35,18 +35,15 @@ namespace CSMWorld
private: private:
NestedCollection* mNestedCollection; NestedCollection* mNestedCollection;
// not implemented
IdTree(const IdTree&);
IdTree& operator=(const IdTree&);
unsigned int foldIndexAddress(const QModelIndex& index) const; unsigned int foldIndexAddress(const QModelIndex& index) const;
std::pair<int, int> unfoldIndexAddress(unsigned int id) const; std::pair<int, int> unfoldIndexAddress(unsigned int id) const;
public: public:
IdTree(NestedCollection* nestedCollection, CollectionBase* idCollection, unsigned int features = 0); IdTree(NestedCollection* nestedCollection, CollectionBase* idCollection, unsigned int features = 0);
///< The ownerships of \a nestedCollecton and \a idCollection are not transferred. ///< The ownerships of \a nestedCollecton and \a idCollection are not transferred.
IdTree(const IdTree&) = delete;
~IdTree() override; IdTree& operator=(const IdTree&) = delete;
~IdTree() override = default;
int rowCount(const QModelIndex& parent = QModelIndex()) const override; int rowCount(const QModelIndex& parent = QModelIndex()) const override;

@ -25,8 +25,6 @@
namespace CSMWorld namespace CSMWorld
{ {
PathgridPointListAdapter::PathgridPointListAdapter() {}
void PathgridPointListAdapter::addRow(Record<Pathgrid>& record, int position) const void PathgridPointListAdapter::addRow(Record<Pathgrid>& record, int position) const
{ {
Pathgrid pathgrid = record.get(); Pathgrid pathgrid = record.get();
@ -135,8 +133,6 @@ namespace CSMWorld
return static_cast<int>(record.get().mPoints.size()); return static_cast<int>(record.get().mPoints.size());
} }
PathgridEdgeListAdapter::PathgridEdgeListAdapter() {}
void PathgridEdgeListAdapter::addRow(Record<Pathgrid>& record, int position) const void PathgridEdgeListAdapter::addRow(Record<Pathgrid>& record, int position) const
{ {
Pathgrid pathgrid = record.get(); Pathgrid pathgrid = record.get();
@ -246,8 +242,6 @@ namespace CSMWorld
return static_cast<int>(record.get().mEdges.size()); return static_cast<int>(record.get().mEdges.size());
} }
FactionReactionsAdapter::FactionReactionsAdapter() {}
void FactionReactionsAdapter::addRow(Record<ESM::Faction>& record, int position) const void FactionReactionsAdapter::addRow(Record<ESM::Faction>& record, int position) const
{ {
ESM::Faction faction = record.get(); ESM::Faction faction = record.get();
@ -372,8 +366,6 @@ namespace CSMWorld
return static_cast<int>(record.get().mReactions.size()); return static_cast<int>(record.get().mReactions.size());
} }
RegionSoundListAdapter::RegionSoundListAdapter() {}
void RegionSoundListAdapter::addRow(Record<ESM::Region>& record, int position) const void RegionSoundListAdapter::addRow(Record<ESM::Region>& record, int position) const
{ {
ESM::Region region = record.get(); ESM::Region region = record.get();
@ -479,8 +471,6 @@ namespace CSMWorld
return static_cast<int>(record.get().mSoundList.size()); return static_cast<int>(record.get().mSoundList.size());
} }
InfoListAdapter::InfoListAdapter() {}
void InfoListAdapter::addRow(Record<Info>& record, int position) const void InfoListAdapter::addRow(Record<Info>& record, int position) const
{ {
throw std::logic_error("cannot add a row to a fixed table"); throw std::logic_error("cannot add a row to a fixed table");
@ -533,8 +523,6 @@ namespace CSMWorld
return 1; // fixed at size 1 return 1; // fixed at size 1
} }
InfoConditionAdapter::InfoConditionAdapter() {}
void InfoConditionAdapter::addRow(Record<Info>& record, int position) const void InfoConditionAdapter::addRow(Record<Info>& record, int position) const
{ {
Info info = record.get(); Info info = record.get();
@ -722,8 +710,6 @@ namespace CSMWorld
return static_cast<int>(record.get().mSelects.size()); return static_cast<int>(record.get().mSelects.size());
} }
RaceAttributeAdapter::RaceAttributeAdapter() {}
void RaceAttributeAdapter::addRow(Record<ESM::Race>& record, int position) const void RaceAttributeAdapter::addRow(Record<ESM::Race>& record, int position) const
{ {
// Do nothing, this table cannot be changed by the user // Do nothing, this table cannot be changed by the user
@ -807,8 +793,6 @@ namespace CSMWorld
return ESM::Attribute::Length; // there are 8 attributes return ESM::Attribute::Length; // there are 8 attributes
} }
RaceSkillsBonusAdapter::RaceSkillsBonusAdapter() {}
void RaceSkillsBonusAdapter::addRow(Record<ESM::Race>& record, int position) const void RaceSkillsBonusAdapter::addRow(Record<ESM::Race>& record, int position) const
{ {
// Do nothing, this table cannot be changed by the user // Do nothing, this table cannot be changed by the user
@ -891,8 +875,6 @@ namespace CSMWorld
return static_cast<int>(sizeof(record.get().mData.mBonus) / sizeof(record.get().mData.mBonus[0])); return static_cast<int>(sizeof(record.get().mData.mBonus) / sizeof(record.get().mData.mBonus[0]));
} }
CellListAdapter::CellListAdapter() {}
void CellListAdapter::addRow(Record<CSMWorld::Cell>& record, int position) const void CellListAdapter::addRow(Record<CSMWorld::Cell>& record, int position) const
{ {
throw std::logic_error("cannot add a row to a fixed table"); throw std::logic_error("cannot add a row to a fixed table");
@ -1064,8 +1046,6 @@ namespace CSMWorld
return 1; // fixed at size 1 return 1; // fixed at size 1
} }
RegionWeatherAdapter::RegionWeatherAdapter() {}
void RegionWeatherAdapter::addRow(Record<ESM::Region>& record, int position) const void RegionWeatherAdapter::addRow(Record<ESM::Region>& record, int position) const
{ {
throw std::logic_error("cannot add a row to a fixed table"); throw std::logic_error("cannot add a row to a fixed table");
@ -1187,8 +1167,6 @@ namespace CSMWorld
return 10; return 10;
} }
FactionRanksAdapter::FactionRanksAdapter() {}
void FactionRanksAdapter::addRow(Record<ESM::Faction>& record, int position) const void FactionRanksAdapter::addRow(Record<ESM::Faction>& record, int position) const
{ {
throw std::logic_error("cannot add a row to a fixed table"); throw std::logic_error("cannot add a row to a fixed table");

@ -34,7 +34,7 @@ namespace CSMWorld
class PathgridPointListAdapter : public NestedColumnAdapter<Pathgrid> class PathgridPointListAdapter : public NestedColumnAdapter<Pathgrid>
{ {
public: public:
PathgridPointListAdapter(); PathgridPointListAdapter() = default;
void addRow(Record<Pathgrid>& record, int position) const override; void addRow(Record<Pathgrid>& record, int position) const override;
@ -56,7 +56,7 @@ namespace CSMWorld
class PathgridEdgeListAdapter : public NestedColumnAdapter<Pathgrid> class PathgridEdgeListAdapter : public NestedColumnAdapter<Pathgrid>
{ {
public: public:
PathgridEdgeListAdapter(); PathgridEdgeListAdapter() = default;
void addRow(Record<Pathgrid>& record, int position) const override; void addRow(Record<Pathgrid>& record, int position) const override;
@ -78,7 +78,7 @@ namespace CSMWorld
class FactionReactionsAdapter : public NestedColumnAdapter<ESM::Faction> class FactionReactionsAdapter : public NestedColumnAdapter<ESM::Faction>
{ {
public: public:
FactionReactionsAdapter(); FactionReactionsAdapter() = default;
void addRow(Record<ESM::Faction>& record, int position) const override; void addRow(Record<ESM::Faction>& record, int position) const override;
@ -101,7 +101,7 @@ namespace CSMWorld
class FactionRanksAdapter : public NestedColumnAdapter<ESM::Faction> class FactionRanksAdapter : public NestedColumnAdapter<ESM::Faction>
{ {
public: public:
FactionRanksAdapter(); FactionRanksAdapter() = default;
void addRow(Record<ESM::Faction>& record, int position) const override; void addRow(Record<ESM::Faction>& record, int position) const override;
@ -124,7 +124,7 @@ namespace CSMWorld
class RegionSoundListAdapter : public NestedColumnAdapter<ESM::Region> class RegionSoundListAdapter : public NestedColumnAdapter<ESM::Region>
{ {
public: public:
RegionSoundListAdapter(); RegionSoundListAdapter() = default;
void addRow(Record<ESM::Region>& record, int position) const override; void addRow(Record<ESM::Region>& record, int position) const override;
@ -148,7 +148,7 @@ namespace CSMWorld
class SpellListAdapter : public NestedColumnAdapter<ESXRecordT> class SpellListAdapter : public NestedColumnAdapter<ESXRecordT>
{ {
public: public:
SpellListAdapter() {} SpellListAdapter() = default;
void addRow(Record<ESXRecordT>& record, int position) const override void addRow(Record<ESXRecordT>& record, int position) const override
{ {
@ -249,7 +249,7 @@ namespace CSMWorld
class EffectsListAdapter : public NestedColumnAdapter<ESXRecordT> class EffectsListAdapter : public NestedColumnAdapter<ESXRecordT>
{ {
public: public:
EffectsListAdapter() {} EffectsListAdapter() = default;
void addRow(Record<ESXRecordT>& record, int position) const override void addRow(Record<ESXRecordT>& record, int position) const override
{ {
@ -434,7 +434,7 @@ namespace CSMWorld
class InfoListAdapter : public NestedColumnAdapter<Info> class InfoListAdapter : public NestedColumnAdapter<Info>
{ {
public: public:
InfoListAdapter(); InfoListAdapter() = default;
void addRow(Record<Info>& record, int position) const override; void addRow(Record<Info>& record, int position) const override;
@ -456,7 +456,7 @@ namespace CSMWorld
class InfoConditionAdapter : public NestedColumnAdapter<Info> class InfoConditionAdapter : public NestedColumnAdapter<Info>
{ {
public: public:
InfoConditionAdapter(); InfoConditionAdapter() = default;
void addRow(Record<Info>& record, int position) const override; void addRow(Record<Info>& record, int position) const override;
@ -478,7 +478,7 @@ namespace CSMWorld
class RaceAttributeAdapter : public NestedColumnAdapter<ESM::Race> class RaceAttributeAdapter : public NestedColumnAdapter<ESM::Race>
{ {
public: public:
RaceAttributeAdapter(); RaceAttributeAdapter() = default;
void addRow(Record<ESM::Race>& record, int position) const override; void addRow(Record<ESM::Race>& record, int position) const override;
@ -500,7 +500,7 @@ namespace CSMWorld
class RaceSkillsBonusAdapter : public NestedColumnAdapter<ESM::Race> class RaceSkillsBonusAdapter : public NestedColumnAdapter<ESM::Race>
{ {
public: public:
RaceSkillsBonusAdapter(); RaceSkillsBonusAdapter() = default;
void addRow(Record<ESM::Race>& record, int position) const override; void addRow(Record<ESM::Race>& record, int position) const override;
@ -522,7 +522,7 @@ namespace CSMWorld
class CellListAdapter : public NestedColumnAdapter<CSMWorld::Cell> class CellListAdapter : public NestedColumnAdapter<CSMWorld::Cell>
{ {
public: public:
CellListAdapter(); CellListAdapter() = default;
void addRow(Record<CSMWorld::Cell>& record, int position) const override; void addRow(Record<CSMWorld::Cell>& record, int position) const override;
@ -545,7 +545,7 @@ namespace CSMWorld
class RegionWeatherAdapter : public NestedColumnAdapter<ESM::Region> class RegionWeatherAdapter : public NestedColumnAdapter<ESM::Region>
{ {
public: public:
RegionWeatherAdapter(); RegionWeatherAdapter() = default;
void addRow(Record<ESM::Region>& record, int position) const override; void addRow(Record<ESM::Region>& record, int position) const override;

@ -6,10 +6,6 @@
#include "columnbase.hpp" #include "columnbase.hpp"
CSMWorld::NestedCollection::NestedCollection() {}
CSMWorld::NestedCollection::~NestedCollection() {}
int CSMWorld::NestedCollection::getNestedRowsCount(int row, int column) const int CSMWorld::NestedCollection::getNestedRowsCount(int row, int column) const
{ {
return 0; return 0;

@ -14,8 +14,8 @@ namespace CSMWorld
{ {
public: public:
NestedCollection(); NestedCollection() = default;
virtual ~NestedCollection(); virtual ~NestedCollection() = default;
virtual void addNestedRow(int row, int col, int position) = 0; virtual void addNestedRow(int row, int col, int position) = 0;

@ -14,9 +14,9 @@ namespace CSMWorld
class NestedColumnAdapter class NestedColumnAdapter
{ {
public: public:
NestedColumnAdapter() {} NestedColumnAdapter() = default;
virtual ~NestedColumnAdapter() {} virtual ~NestedColumnAdapter() = default;
virtual void addRow(Record<ESXRecordT>& record, int position) const = 0; virtual void addRow(Record<ESXRecordT>& record, int position) const = 0;

@ -17,8 +17,6 @@
namespace CSMWorld namespace CSMWorld
{ {
NestedInfoCollection::NestedInfoCollection() {}
NestedInfoCollection::~NestedInfoCollection() NestedInfoCollection::~NestedInfoCollection()
{ {
for (std::map<const ColumnBase*, NestedColumnAdapter<Info>*>::iterator iter(mAdapters.begin()); for (std::map<const ColumnBase*, NestedColumnAdapter<Info>*>::iterator iter(mAdapters.begin());

@ -26,7 +26,7 @@ namespace CSMWorld
const NestedColumnAdapter<Info>& getAdapter(const ColumnBase& column) const; const NestedColumnAdapter<Info>& getAdapter(const ColumnBase& column) const;
public: public:
NestedInfoCollection(); NestedInfoCollection() = default;
~NestedInfoCollection() override; ~NestedInfoCollection() override;
void addNestedRow(int row, int column, int position) override; void addNestedRow(int row, int column, int position) override;

@ -1,9 +1,5 @@
#include "nestedtablewrapper.hpp" #include "nestedtablewrapper.hpp"
CSMWorld::NestedTableWrapperBase::NestedTableWrapperBase() {}
CSMWorld::NestedTableWrapperBase::~NestedTableWrapperBase() {}
int CSMWorld::NestedTableWrapperBase::size() const int CSMWorld::NestedTableWrapperBase::size() const
{ {
return -5; return -5;

@ -5,11 +5,11 @@ namespace CSMWorld
{ {
struct NestedTableWrapperBase struct NestedTableWrapperBase
{ {
virtual ~NestedTableWrapperBase(); virtual ~NestedTableWrapperBase() = default;
virtual int size() const; virtual int size() const;
NestedTableWrapperBase(); NestedTableWrapperBase() = default;
}; };
template <typename NestedTable> template <typename NestedTable>
@ -22,7 +22,7 @@ namespace CSMWorld
{ {
} }
~NestedTableWrapper() override {} ~NestedTableWrapper() override = default;
int size() const override int size() const override
{ {

@ -1,7 +1,5 @@
#include "record.hpp" #include "record.hpp"
CSMWorld::RecordBase::~RecordBase() {}
bool CSMWorld::RecordBase::isDeleted() const bool CSMWorld::RecordBase::isDeleted() const
{ {
return mState == State_Deleted || mState == State_Erased; return mState == State_Deleted || mState == State_Erased;

@ -19,7 +19,7 @@ namespace CSMWorld
State mState; State mState;
virtual ~RecordBase(); virtual ~RecordBase() = default;
virtual std::unique_ptr<RecordBase> clone() const = 0; virtual std::unique_ptr<RecordBase> clone() const = 0;

@ -1,9 +0,0 @@
#include "refidadapter.hpp"
CSMWorld::RefIdAdapter::RefIdAdapter() {}
CSMWorld::RefIdAdapter::~RefIdAdapter() {}
CSMWorld::NestedRefIdAdapterBase::NestedRefIdAdapterBase() {}
CSMWorld::NestedRefIdAdapterBase::~NestedRefIdAdapterBase() {}

@ -25,14 +25,11 @@ namespace CSMWorld
class RefIdAdapter class RefIdAdapter
{ {
// not implemented
RefIdAdapter(const RefIdAdapter&);
RefIdAdapter& operator=(const RefIdAdapter&);
public: public:
RefIdAdapter(); RefIdAdapter() = default;
RefIdAdapter(const RefIdAdapter&) = delete;
virtual ~RefIdAdapter(); RefIdAdapter& operator=(const RefIdAdapter&) = delete;
virtual ~RefIdAdapter() = default;
virtual QVariant getData(const RefIdColumn* column, const RefIdData& data, int idnex) const = 0; virtual QVariant getData(const RefIdColumn* column, const RefIdData& data, int idnex) const = 0;
///< If called on the nest column, should return QVariant(true). ///< If called on the nest column, should return QVariant(true).
@ -48,9 +45,9 @@ namespace CSMWorld
class NestedRefIdAdapterBase class NestedRefIdAdapterBase
{ {
public: public:
NestedRefIdAdapterBase(); NestedRefIdAdapterBase() = default;
virtual ~NestedRefIdAdapterBase(); virtual ~NestedRefIdAdapterBase() = default;
virtual void setNestedData(const RefIdColumn* column, RefIdData& data, int row, const QVariant& value, virtual void setNestedData(const RefIdColumn* column, RefIdData& data, int row, const QVariant& value,
int subRowIndex, int subColIndex) const = 0; int subRowIndex, int subColIndex) const = 0;

@ -94,8 +94,6 @@ CSMWorld::IngredEffectRefIdAdapter::IngredEffectRefIdAdapter()
{ {
} }
CSMWorld::IngredEffectRefIdAdapter::~IngredEffectRefIdAdapter() {}
void CSMWorld::IngredEffectRefIdAdapter::addNestedRow( void CSMWorld::IngredEffectRefIdAdapter::addNestedRow(
const RefIdColumn* column, RefIdData& data, int index, int position) const const RefIdColumn* column, RefIdData& data, int index, int position) const
{ {
@ -882,8 +880,6 @@ void CSMWorld::NpcRefIdAdapter::setData(
record.setModified(npc); record.setModified(npc);
} }
CSMWorld::NpcAttributesRefIdAdapter::NpcAttributesRefIdAdapter() {}
void CSMWorld::NpcAttributesRefIdAdapter::addNestedRow( void CSMWorld::NpcAttributesRefIdAdapter::addNestedRow(
const RefIdColumn* column, RefIdData& data, int index, int position) const const RefIdColumn* column, RefIdData& data, int index, int position) const
{ {
@ -1015,8 +1011,6 @@ int CSMWorld::NpcAttributesRefIdAdapter::getNestedRowsCount(
return 8; return 8;
} }
CSMWorld::NpcSkillsRefIdAdapter::NpcSkillsRefIdAdapter() {}
void CSMWorld::NpcSkillsRefIdAdapter::addNestedRow( void CSMWorld::NpcSkillsRefIdAdapter::addNestedRow(
const RefIdColumn* column, RefIdData& data, int index, int position) const const RefIdColumn* column, RefIdData& data, int index, int position) const
{ {
@ -1106,10 +1100,6 @@ int CSMWorld::NpcSkillsRefIdAdapter::getNestedRowsCount(
return ESM::Skill::Length; return ESM::Skill::Length;
} }
CSMWorld::NpcMiscRefIdAdapter::NpcMiscRefIdAdapter() {}
CSMWorld::NpcMiscRefIdAdapter::~NpcMiscRefIdAdapter() {}
void CSMWorld::NpcMiscRefIdAdapter::addNestedRow( void CSMWorld::NpcMiscRefIdAdapter::addNestedRow(
const RefIdColumn* column, RefIdData& data, int index, int position) const const RefIdColumn* column, RefIdData& data, int index, int position) const
{ {
@ -1268,8 +1258,6 @@ int CSMWorld::NpcMiscRefIdAdapter::getNestedRowsCount(const RefIdColumn* column,
return 1; // fixed at size 1 return 1; // fixed at size 1
} }
CSMWorld::CreatureAttributesRefIdAdapter::CreatureAttributesRefIdAdapter() {}
void CSMWorld::CreatureAttributesRefIdAdapter::addNestedRow( void CSMWorld::CreatureAttributesRefIdAdapter::addNestedRow(
const RefIdColumn* column, RefIdData& data, int index, int position) const const RefIdColumn* column, RefIdData& data, int index, int position) const
{ {
@ -1401,8 +1389,6 @@ int CSMWorld::CreatureAttributesRefIdAdapter::getNestedRowsCount(
return 8; return 8;
} }
CSMWorld::CreatureAttackRefIdAdapter::CreatureAttackRefIdAdapter() {}
void CSMWorld::CreatureAttackRefIdAdapter::addNestedRow( void CSMWorld::CreatureAttackRefIdAdapter::addNestedRow(
const RefIdColumn* column, RefIdData& data, int index, int position) const const RefIdColumn* column, RefIdData& data, int index, int position) const
{ {
@ -1491,10 +1477,6 @@ int CSMWorld::CreatureAttackRefIdAdapter::getNestedRowsCount(
return 3; return 3;
} }
CSMWorld::CreatureMiscRefIdAdapter::CreatureMiscRefIdAdapter() {}
CSMWorld::CreatureMiscRefIdAdapter::~CreatureMiscRefIdAdapter() {}
void CSMWorld::CreatureMiscRefIdAdapter::addNestedRow( void CSMWorld::CreatureMiscRefIdAdapter::addNestedRow(
const RefIdColumn* column, RefIdData& data, int index, int position) const const RefIdColumn* column, RefIdData& data, int index, int position) const
{ {

@ -431,14 +431,11 @@ namespace CSMWorld
{ {
UniversalId::Type mType; UniversalId::Type mType;
// not implemented
IngredEffectRefIdAdapter(const IngredEffectRefIdAdapter&);
IngredEffectRefIdAdapter& operator=(const IngredEffectRefIdAdapter&);
public: public:
IngredEffectRefIdAdapter(); IngredEffectRefIdAdapter();
IngredEffectRefIdAdapter(const IngredEffectRefIdAdapter&) = delete;
~IngredEffectRefIdAdapter() override; IngredEffectRefIdAdapter& operator=(const IngredEffectRefIdAdapter&) = delete;
~IngredEffectRefIdAdapter() override = default;
void addNestedRow(const RefIdColumn* column, RefIdData& data, int index, int position) const override; void addNestedRow(const RefIdColumn* column, RefIdData& data, int index, int position) const override;
@ -942,7 +939,7 @@ namespace CSMWorld
class NpcAttributesRefIdAdapter : public NestedRefIdAdapterBase class NpcAttributesRefIdAdapter : public NestedRefIdAdapterBase
{ {
public: public:
NpcAttributesRefIdAdapter(); NpcAttributesRefIdAdapter() = default;
void addNestedRow(const RefIdColumn* column, RefIdData& data, int index, int position) const override; void addNestedRow(const RefIdColumn* column, RefIdData& data, int index, int position) const override;
@ -967,7 +964,7 @@ namespace CSMWorld
class NpcSkillsRefIdAdapter : public NestedRefIdAdapterBase class NpcSkillsRefIdAdapter : public NestedRefIdAdapterBase
{ {
public: public:
NpcSkillsRefIdAdapter(); NpcSkillsRefIdAdapter() = default;
void addNestedRow(const RefIdColumn* column, RefIdData& data, int index, int position) const override; void addNestedRow(const RefIdColumn* column, RefIdData& data, int index, int position) const override;
@ -991,12 +988,11 @@ namespace CSMWorld
class NpcMiscRefIdAdapter : public NestedRefIdAdapterBase class NpcMiscRefIdAdapter : public NestedRefIdAdapterBase
{ {
NpcMiscRefIdAdapter(const NpcMiscRefIdAdapter&);
NpcMiscRefIdAdapter& operator=(const NpcMiscRefIdAdapter&);
public: public:
NpcMiscRefIdAdapter(); NpcMiscRefIdAdapter() = default;
~NpcMiscRefIdAdapter() override; NpcMiscRefIdAdapter(const NpcMiscRefIdAdapter&) = delete;
NpcMiscRefIdAdapter& operator=(const NpcMiscRefIdAdapter&) = delete;
~NpcMiscRefIdAdapter() override = default;
void addNestedRow(const RefIdColumn* column, RefIdData& data, int index, int position) const override; void addNestedRow(const RefIdColumn* column, RefIdData& data, int index, int position) const override;
@ -1021,7 +1017,7 @@ namespace CSMWorld
class CreatureAttributesRefIdAdapter : public NestedRefIdAdapterBase class CreatureAttributesRefIdAdapter : public NestedRefIdAdapterBase
{ {
public: public:
CreatureAttributesRefIdAdapter(); CreatureAttributesRefIdAdapter() = default;
void addNestedRow(const RefIdColumn* column, RefIdData& data, int index, int position) const override; void addNestedRow(const RefIdColumn* column, RefIdData& data, int index, int position) const override;
@ -1046,7 +1042,7 @@ namespace CSMWorld
class CreatureAttackRefIdAdapter : public NestedRefIdAdapterBase class CreatureAttackRefIdAdapter : public NestedRefIdAdapterBase
{ {
public: public:
CreatureAttackRefIdAdapter(); CreatureAttackRefIdAdapter() = default;
void addNestedRow(const RefIdColumn* column, RefIdData& data, int index, int position) const override; void addNestedRow(const RefIdColumn* column, RefIdData& data, int index, int position) const override;
@ -1070,12 +1066,11 @@ namespace CSMWorld
class CreatureMiscRefIdAdapter : public NestedRefIdAdapterBase class CreatureMiscRefIdAdapter : public NestedRefIdAdapterBase
{ {
CreatureMiscRefIdAdapter(const CreatureMiscRefIdAdapter&);
CreatureMiscRefIdAdapter& operator=(const CreatureMiscRefIdAdapter&);
public: public:
CreatureMiscRefIdAdapter(); CreatureMiscRefIdAdapter() = default;
~CreatureMiscRefIdAdapter() override; CreatureMiscRefIdAdapter(const CreatureMiscRefIdAdapter&) = delete;
CreatureMiscRefIdAdapter& operator=(const CreatureMiscRefIdAdapter&) = delete;
~CreatureMiscRefIdAdapter() override = default;
void addNestedRow(const RefIdColumn* column, RefIdData& data, int index, int position) const override; void addNestedRow(const RefIdColumn* column, RefIdData& data, int index, int position) const override;
@ -1115,7 +1110,7 @@ namespace CSMWorld
{ {
} }
virtual ~EffectsRefIdAdapter() {} virtual ~EffectsRefIdAdapter() = default;
void addNestedRow(const RefIdColumn* column, RefIdData& data, int index, int position) const override void addNestedRow(const RefIdColumn* column, RefIdData& data, int index, int position) const override
{ {
@ -1191,7 +1186,7 @@ namespace CSMWorld
{ {
} }
virtual ~NestedInventoryRefIdAdapter() {} virtual ~NestedInventoryRefIdAdapter() = default;
void addNestedRow(const RefIdColumn* column, RefIdData& data, int index, int position) const override void addNestedRow(const RefIdColumn* column, RefIdData& data, int index, int position) const override
{ {
@ -1327,7 +1322,7 @@ namespace CSMWorld
{ {
} }
virtual ~NestedSpellRefIdAdapter() {} virtual ~NestedSpellRefIdAdapter() = default;
void addNestedRow(const RefIdColumn* column, RefIdData& data, int index, int position) const override void addNestedRow(const RefIdColumn* column, RefIdData& data, int index, int position) const override
{ {
@ -1449,7 +1444,7 @@ namespace CSMWorld
{ {
} }
virtual ~NestedTravelRefIdAdapter() {} virtual ~NestedTravelRefIdAdapter() = default;
void addNestedRow(const RefIdColumn* column, RefIdData& data, int index, int position) const override void addNestedRow(const RefIdColumn* column, RefIdData& data, int index, int position) const override
{ {
@ -1618,7 +1613,7 @@ namespace CSMWorld
{ {
} }
virtual ~ActorAiRefIdAdapter() {} virtual ~ActorAiRefIdAdapter() = default;
// FIXME: should check if the AI package type is already in the list and use a default // FIXME: should check if the AI package type is already in the list and use a default
// that wasn't used already (in extreme case do not add anything at all? // that wasn't used already (in extreme case do not add anything at all?
@ -1974,7 +1969,7 @@ namespace CSMWorld
{ {
} }
virtual ~BodyPartRefIdAdapter() {} virtual ~BodyPartRefIdAdapter() = default;
void addNestedRow(const RefIdColumn* column, RefIdData& data, int index, int position) const override void addNestedRow(const RefIdColumn* column, RefIdData& data, int index, int position) const override
{ {
@ -2175,7 +2170,7 @@ namespace CSMWorld
{ {
} }
virtual ~NestedListLevListRefIdAdapter() {} virtual ~NestedListLevListRefIdAdapter() = default;
void addNestedRow(const RefIdColumn* column, RefIdData& data, int index, int position) const override void addNestedRow(const RefIdColumn* column, RefIdData& data, int index, int position) const override
{ {
@ -2332,7 +2327,7 @@ namespace CSMWorld
{ {
} }
virtual ~NestedLevListRefIdAdapter() {} virtual ~NestedLevListRefIdAdapter() = default;
void addNestedRow(const RefIdColumn* column, RefIdData& data, int index, int position) const override void addNestedRow(const RefIdColumn* column, RefIdData& data, int index, int position) const override
{ {

@ -14,8 +14,6 @@ namespace ESM
class ESMWriter; class ESMWriter;
} }
CSMWorld::RefIdDataContainerBase::~RefIdDataContainerBase() {}
ESM::RefId CSMWorld::RefIdData::getRecordId(const CSMWorld::RefIdData::LocalIndex& index) const ESM::RefId CSMWorld::RefIdData::getRecordId(const CSMWorld::RefIdData::LocalIndex& index) const
{ {
std::map<UniversalId::Type, RefIdDataContainerBase*>::const_iterator found = mRecordContainers.find(index.second); std::map<UniversalId::Type, RefIdDataContainerBase*>::const_iterator found = mRecordContainers.find(index.second);

@ -46,7 +46,7 @@ namespace CSMWorld
{ {
struct RefIdDataContainerBase struct RefIdDataContainerBase
{ {
virtual ~RefIdDataContainerBase(); virtual ~RefIdDataContainerBase() = default;
virtual int getSize() const = 0; virtual int getSize() const = 0;

@ -15,8 +15,6 @@ CSMWorld::ResourceTable::ResourceTable(const Resources* resources, unsigned int
{ {
} }
CSMWorld::ResourceTable::~ResourceTable() {}
int CSMWorld::ResourceTable::rowCount(const QModelIndex& parent) const int CSMWorld::ResourceTable::rowCount(const QModelIndex& parent) const
{ {
if (parent.isValid()) if (parent.isValid())

@ -24,7 +24,7 @@ namespace CSMWorld
/// \note The feature Feature_Constant will be added implicitly. /// \note The feature Feature_Constant will be added implicitly.
ResourceTable(const Resources* resources, unsigned int features = 0); ResourceTable(const Resources* resources, unsigned int features = 0);
~ResourceTable() override; ~ResourceTable() override = default;
int rowCount(const QModelIndex& parent = QModelIndex()) const override; int rowCount(const QModelIndex& parent = QModelIndex()) const override;

@ -33,8 +33,6 @@ QStringList CSMWorld::TableMimeData::formats() const
return mObjectsFormats; return mObjectsFormats;
} }
CSMWorld::TableMimeData::~TableMimeData() {}
std::string CSMWorld::TableMimeData::getIcon() const std::string CSMWorld::TableMimeData::getIcon() const
{ {
if (mUniversalId.empty()) if (mUniversalId.empty())

@ -44,7 +44,7 @@ namespace CSMWorld
TableMimeData(const std::vector<UniversalId>& id, const CSMDoc::Document& document); TableMimeData(const std::vector<UniversalId>& id, const CSMDoc::Document& document);
~TableMimeData(); ~TableMimeData() override = default;
QStringList formats() const override; QStringList formats() const override;

@ -149,8 +149,6 @@ void CSVDoc::LoadingDocument::cancel()
} }
} }
CSVDoc::Loader::Loader() {}
CSVDoc::Loader::~Loader() CSVDoc::Loader::~Loader()
{ {
for (std::map<CSMDoc::Document*, LoadingDocument*>::iterator iter(mDocuments.begin()); iter != mDocuments.end(); for (std::map<CSMDoc::Document*, LoadingDocument*>::iterator iter(mDocuments.begin()); iter != mDocuments.end();

@ -73,7 +73,7 @@ namespace CSVDoc
std::map<CSMDoc::Document*, LoadingDocument*> mDocuments; std::map<CSMDoc::Document*, LoadingDocument*> mDocuments;
public: public:
Loader(); Loader() = default;
~Loader() override; ~Loader() override;

@ -5,8 +5,6 @@ CSVDoc::SizeHintWidget::SizeHintWidget(QWidget* parent)
{ {
} }
CSVDoc::SizeHintWidget::~SizeHintWidget() {}
QSize CSVDoc::SizeHintWidget::sizeHint() const QSize CSVDoc::SizeHintWidget::sizeHint() const
{ {
return mSize; return mSize;

@ -12,7 +12,7 @@ namespace CSVDoc
public: public:
SizeHintWidget(QWidget* parent = nullptr); SizeHintWidget(QWidget* parent = nullptr);
~SizeHintWidget() override; ~SizeHintWidget() override = default;
QSize sizeHint() const override; QSize sizeHint() const override;
void setSizeHint(const QSize& size); void setSizeHint(const QSize& size);

@ -8,12 +8,6 @@
#include <apps/opencs/model/world/universalid.hpp> #include <apps/opencs/model/world/universalid.hpp>
CSVDoc::SubViewFactoryBase::SubViewFactoryBase() {}
CSVDoc::SubViewFactoryBase::~SubViewFactoryBase() {}
CSVDoc::SubViewFactoryManager::SubViewFactoryManager() {}
CSVDoc::SubViewFactoryManager::~SubViewFactoryManager() CSVDoc::SubViewFactoryManager::~SubViewFactoryManager()
{ {
for (std::map<CSMWorld::UniversalId::Type, SubViewFactoryBase*>::iterator iter(mSubViewFactories.begin()); for (std::map<CSMWorld::UniversalId::Type, SubViewFactoryBase*>::iterator iter(mSubViewFactories.begin());

@ -16,14 +16,11 @@ namespace CSVDoc
class SubViewFactoryBase class SubViewFactoryBase
{ {
// not implemented
SubViewFactoryBase(const SubViewFactoryBase&);
SubViewFactoryBase& operator=(const SubViewFactoryBase&);
public: public:
SubViewFactoryBase(); SubViewFactoryBase() = default;
SubViewFactoryBase(const SubViewFactoryBase&) = delete;
virtual ~SubViewFactoryBase(); SubViewFactoryBase& operator=(const SubViewFactoryBase&) = delete;
virtual ~SubViewFactoryBase() = default;
virtual SubView* makeSubView(const CSMWorld::UniversalId& id, CSMDoc::Document& document) = 0; virtual SubView* makeSubView(const CSMWorld::UniversalId& id, CSMDoc::Document& document) = 0;
///< The ownership of the returned sub view is not transferred. ///< The ownership of the returned sub view is not transferred.
@ -33,13 +30,10 @@ namespace CSVDoc
{ {
std::map<CSMWorld::UniversalId::Type, SubViewFactoryBase*> mSubViewFactories; std::map<CSMWorld::UniversalId::Type, SubViewFactoryBase*> mSubViewFactories;
// not implemented
SubViewFactoryManager(const SubViewFactoryManager&);
SubViewFactoryManager& operator=(const SubViewFactoryManager&);
public: public:
SubViewFactoryManager(); SubViewFactoryManager() = default;
SubViewFactoryManager(const SubViewFactoryManager&) = delete;
SubViewFactoryManager& operator=(const SubViewFactoryManager&) = delete;
~SubViewFactoryManager(); ~SubViewFactoryManager();
void add(const CSMWorld::UniversalId::Type& id, SubViewFactoryBase* factory); void add(const CSMWorld::UniversalId::Type& id, SubViewFactoryBase* factory);

@ -538,8 +538,6 @@ CSVDoc::View::View(ViewManager& viewManager, CSMDoc::Document* document, int tot
connect(&CSMPrefs::State::get(), &CSMPrefs::State::settingChanged, this, &View::settingChanged); connect(&CSMPrefs::State::get(), &CSMPrefs::State::settingChanged, this, &View::settingChanged);
} }
CSVDoc::View::~View() {}
const CSMDoc::Document* CSVDoc::View::getDocument() const const CSMDoc::Document* CSVDoc::View::getDocument() const
{ {
return mDocument; return mDocument;

@ -58,10 +58,6 @@ namespace CSVDoc
QScrollArea* mScroll; QScrollArea* mScroll;
bool mScrollbarOnly; bool mScrollbarOnly;
// not implemented
View(const View&);
View& operator=(const View&);
private: private:
void closeEvent(QCloseEvent* event) override; void closeEvent(QCloseEvent* event) override;
@ -107,10 +103,10 @@ namespace CSVDoc
public: public:
View(ViewManager& viewManager, CSMDoc::Document* document, int totalViews); View(ViewManager& viewManager, CSMDoc::Document* document, int totalViews);
///< The ownership of \a document is not transferred to *this. ///< The ownership of \a document is not transferred to *this.
View(const View&) = delete;
~View() override; View& operator=(const View&) = delete;
~View() override = default;
const CSMDoc::Document* getDocument() const; const CSMDoc::Document* getDocument() const;

@ -45,8 +45,6 @@ namespace CSVRender
{ {
} }
CameraController::~CameraController() {}
bool CameraController::isActive() const bool CameraController::isActive() const
{ {
return mActive; return mActive;

@ -32,7 +32,7 @@ namespace CSVRender
static const osg::Vec3d LocalForward; static const osg::Vec3d LocalForward;
CameraController(QObject* parent); CameraController(QObject* parent);
virtual ~CameraController(); ~CameraController() override = default;
bool isActive() const; bool isActive() const;

@ -62,8 +62,6 @@ private:
int mIndex; int mIndex;
}; };
CSVRender::Lighting::~Lighting() {}
void CSVRender::Lighting::updateDayNightMode(int index) void CSVRender::Lighting::updateDayNightMode(int index)
{ {
if (mRootNode == nullptr) if (mRootNode == nullptr)

@ -19,7 +19,7 @@ namespace CSVRender
: mRootNode(nullptr) : mRootNode(nullptr)
{ {
} }
virtual ~Lighting(); virtual ~Lighting() = default;
virtual void activate(osg::Group* rootNode, bool isExterior) = 0; virtual void activate(osg::Group* rootNode, bool isExterior) = 0;

@ -5,8 +5,6 @@
#include <osg/LightSource> #include <osg/LightSource>
#include <osg/ref_ptr> #include <osg/ref_ptr>
CSVRender::LightingDay::LightingDay() {}
void CSVRender::LightingDay::activate(osg::Group* rootNode, bool /*isExterior*/) void CSVRender::LightingDay::activate(osg::Group* rootNode, bool /*isExterior*/)
{ {
mRootNode = rootNode; mRootNode = rootNode;

@ -15,7 +15,7 @@ namespace CSVRender
class LightingDay : public Lighting class LightingDay : public Lighting
{ {
public: public:
LightingDay(); LightingDay() = default;
void activate(osg::Group* rootNode, bool /*isExterior*/) override; void activate(osg::Group* rootNode, bool /*isExterior*/) override;

@ -5,8 +5,6 @@
#include <osg/LightSource> #include <osg/LightSource>
#include <osg/ref_ptr> #include <osg/ref_ptr>
CSVRender::LightingNight::LightingNight() {}
void CSVRender::LightingNight::activate(osg::Group* rootNode, bool isExterior) void CSVRender::LightingNight::activate(osg::Group* rootNode, bool isExterior)
{ {
mRootNode = rootNode; mRootNode = rootNode;

@ -15,7 +15,7 @@ namespace CSVRender
class LightingNight : public Lighting class LightingNight : public Lighting
{ {
public: public:
LightingNight(); LightingNight() = default;
void activate(osg::Group* rootNode, bool isExterior) override; void activate(osg::Group* rootNode, bool isExterior) override;
void deactivate() override; void deactivate() override;

@ -28,8 +28,6 @@ namespace CSVRender
connect(mCenterShortcut, qOverload<>(&CSMPrefs::Shortcut::activated), this, &OrbitCameraMode::centerSelection); connect(mCenterShortcut, qOverload<>(&CSMPrefs::Shortcut::activated), this, &OrbitCameraMode::centerSelection);
} }
OrbitCameraMode::~OrbitCameraMode() {}
void OrbitCameraMode::activate(CSVWidget::SceneToolbar* toolbar) void OrbitCameraMode::activate(CSVWidget::SceneToolbar* toolbar)
{ {
mCenterOnSelection = new QAction("Center on selected object", this); mCenterOnSelection = new QAction("Center on selected object", this);

@ -29,7 +29,7 @@ namespace CSVRender
public: public:
OrbitCameraMode(WorldspaceWidget* worldspaceWidget, const QIcon& icon, const QString& tooltip = "", OrbitCameraMode(WorldspaceWidget* worldspaceWidget, const QIcon& icon, const QString& tooltip = "",
QWidget* parent = nullptr); QWidget* parent = nullptr);
~OrbitCameraMode(); ~OrbitCameraMode() override = default;
void activate(CSVWidget::SceneToolbar* toolbar) override; void activate(CSVWidget::SceneToolbar* toolbar) override;
void deactivate(CSVWidget::SceneToolbar* toolbar) override; void deactivate(CSVWidget::SceneToolbar* toolbar) override;

@ -138,8 +138,6 @@ CSVRender::WorldspaceWidget::WorldspaceWidget(CSMDoc::Document& document, QWidge
mInConstructor = false; mInConstructor = false;
} }
CSVRender::WorldspaceWidget::~WorldspaceWidget() {}
void CSVRender::WorldspaceWidget::settingChanged(const CSMPrefs::Setting* setting) void CSVRender::WorldspaceWidget::settingChanged(const CSMPrefs::Setting* setting)
{ {
if (*setting == "3D Scene Input/drag-factor") if (*setting == "3D Scene Input/drag-factor")

@ -119,7 +119,7 @@ namespace CSVRender
}; };
WorldspaceWidget(CSMDoc::Document& document, QWidget* parent = nullptr); WorldspaceWidget(CSMDoc::Document& document, QWidget* parent = nullptr);
~WorldspaceWidget(); ~WorldspaceWidget() = default;
CSVWidget::SceneToolMode* makeNavigationSelector(CSVWidget::SceneToolbar* parent); CSVWidget::SceneToolMode* makeNavigationSelector(CSVWidget::SceneToolbar* parent);
///< \attention The created tool is not added to the toolbar (via addTool). Doing that ///< \attention The created tool is not added to the toolbar (via addTool). Doing that

@ -10,16 +10,12 @@ namespace CSMDoc
class Document; class Document;
} }
CSVWorld::Creator::~Creator() {}
void CSVWorld::Creator::setScope(unsigned int scope) void CSVWorld::Creator::setScope(unsigned int scope)
{ {
if (scope != CSMWorld::Scope_Content) if (scope != CSMWorld::Scope_Content)
throw std::logic_error("Invalid scope in creator"); throw std::logic_error("Invalid scope in creator");
} }
CSVWorld::CreatorFactoryBase::~CreatorFactoryBase() {}
CSVWorld::Creator* CSVWorld::NullCreatorFactory::makeCreator( CSVWorld::Creator* CSVWorld::NullCreatorFactory::makeCreator(
CSMDoc::Document& document, const CSMWorld::UniversalId& id) const CSMDoc::Document& document, const CSMWorld::UniversalId& id) const
{ {

@ -21,7 +21,7 @@ namespace CSVWorld
Q_OBJECT Q_OBJECT
public: public:
virtual ~Creator(); ~Creator() override = default;
virtual void reset() = 0; virtual void reset() = 0;
@ -53,7 +53,7 @@ namespace CSVWorld
class CreatorFactoryBase class CreatorFactoryBase
{ {
public: public:
virtual ~CreatorFactoryBase(); virtual ~CreatorFactoryBase() = default;
virtual Creator* makeCreator(CSMDoc::Document& document, const CSMWorld::UniversalId& id) const = 0; virtual Creator* makeCreator(CSMDoc::Document& document, const CSMWorld::UniversalId& id) const = 0;
///< The ownership of the returned Creator is transferred to the caller. ///< The ownership of the returned Creator is transferred to the caller.

@ -148,8 +148,6 @@ void CSVWorld::DataDisplayDelegate::updateDisplayMode(const std::string& mode)
mDisplayMode = Mode_TextOnly; mDisplayMode = Mode_TextOnly;
} }
CSVWorld::DataDisplayDelegate::~DataDisplayDelegate() {}
void CSVWorld::DataDisplayDelegate::settingChanged(const CSMPrefs::Setting* setting) void CSVWorld::DataDisplayDelegate::settingChanged(const CSMPrefs::Setting* setting)
{ {
if (*setting == mSettingKey) if (*setting == mSettingKey)

@ -68,7 +68,7 @@ namespace CSVWorld
DataDisplayDelegate(const ValueList& values, const IconList& icons, CSMWorld::CommandDispatcher* dispatcher, DataDisplayDelegate(const ValueList& values, const IconList& icons, CSMWorld::CommandDispatcher* dispatcher,
CSMDoc::Document& document, const std::string& pageName, const std::string& settingName, QObject* parent); CSMDoc::Document& document, const std::string& pageName, const std::string& settingName, QObject* parent);
~DataDisplayDelegate(); ~DataDisplayDelegate() = default;
void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const override; void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const override;

@ -134,8 +134,6 @@ QSize CSVWorld::EnumDelegate::sizeHint(const QStyleOptionViewItem& option, const
return option.rect.size(); return option.rect.size();
} }
CSVWorld::EnumDelegateFactory::EnumDelegateFactory() {}
CSVWorld::EnumDelegateFactory::EnumDelegateFactory(const char** names, bool allowNone) CSVWorld::EnumDelegateFactory::EnumDelegateFactory(const char** names, bool allowNone)
{ {
assert(names); assert(names);

@ -59,7 +59,7 @@ namespace CSVWorld
std::vector<std::pair<int, QString>> mValues; std::vector<std::pair<int, QString>> mValues;
public: public:
EnumDelegateFactory(); EnumDelegateFactory() = default;
EnumDelegateFactory(const char** names, bool allowNone = false); EnumDelegateFactory(const char** names, bool allowNone = false);
///< \param names Array of char pointer with a 0-pointer as end mark ///< \param names Array of char pointer with a 0-pointer as end mark

@ -55,8 +55,6 @@ QVariant CSVWorld::NastyTableModelHack::getData() const
return mData; return mData;
} }
CSVWorld::CommandDelegateFactory::~CommandDelegateFactory() {}
CSVWorld::CommandDelegateFactoryCollection* CSVWorld::CommandDelegateFactoryCollection::sThis = nullptr; CSVWorld::CommandDelegateFactoryCollection* CSVWorld::CommandDelegateFactoryCollection::sThis = nullptr;
CSVWorld::CommandDelegateFactoryCollection::CommandDelegateFactoryCollection() CSVWorld::CommandDelegateFactoryCollection::CommandDelegateFactoryCollection()

@ -57,7 +57,7 @@ namespace CSVWorld
class CommandDelegateFactory class CommandDelegateFactory
{ {
public: public:
virtual ~CommandDelegateFactory(); virtual ~CommandDelegateFactory() = default;
virtual CommandDelegate* makeDelegate( virtual CommandDelegate* makeDelegate(
CSMWorld::CommandDispatcher* dispatcher, CSMDoc::Document& document, QObject* parent) const = 0; CSMWorld::CommandDispatcher* dispatcher, CSMDoc::Document& document, QObject* parent) const = 0;

@ -10,10 +10,6 @@
#include <components/files/qtconversion.hpp> #include <components/files/qtconversion.hpp>
Wizard::IniSettings::IniSettings() {}
Wizard::IniSettings::~IniSettings() {}
QStringList Wizard::IniSettings::findKeys(const QString& text) QStringList Wizard::IniSettings::findKeys(const QString& text)
{ {
QStringList result; QStringList result;

@ -14,8 +14,7 @@ namespace Wizard
class IniSettings class IniSettings
{ {
public: public:
explicit IniSettings(); explicit IniSettings() = default;
~IniSettings();
inline QVariant value(const QString& key, const QVariant& defaultValue = QVariant()) const inline QVariant value(const QString& key, const QVariant& defaultValue = QVariant()) const
{ {

@ -40,8 +40,6 @@ Wizard::UnshieldWorker::UnshieldWorker(qint64 expectedMorrowindBsaSize, QObject*
qRegisterMetaType<Wizard::Component>("Wizard::Component"); qRegisterMetaType<Wizard::Component>("Wizard::Component");
} }
Wizard::UnshieldWorker::~UnshieldWorker() {}
void Wizard::UnshieldWorker::stopWorker() void Wizard::UnshieldWorker::stopWorker()
{ {
mStopped = true; mStopped = true;

@ -25,7 +25,7 @@ namespace Wizard
public: public:
UnshieldWorker(qint64 expectedMorrowindBsaSize, QObject* parent = nullptr); UnshieldWorker(qint64 expectedMorrowindBsaSize, QObject* parent = nullptr);
~UnshieldWorker() override; ~UnshieldWorker() override = default;
void stopWorker(); void stopWorker();

Loading…
Cancel
Save