Merge branch 'modernize_use_override_openmw_cs' into 'master'

Using override keyword in OpenMW CS

See merge request OpenMW/openmw!888
dont-compose-content
Evil Eye 4 years ago
commit 7377568f01

@ -152,7 +152,7 @@ namespace CSMWorld
Data (ToUTF8::FromType encoding, bool fsStrict, const Files::PathContainer& dataPaths, Data (ToUTF8::FromType encoding, bool fsStrict, const Files::PathContainer& dataPaths,
const std::vector<std::string>& archives, const boost::filesystem::path& resDir); const std::vector<std::string>& archives, const boost::filesystem::path& resDir);
virtual ~Data(); ~Data() override;
const VFS::Manager* getVFS() const; const VFS::Manager* getVFS() const;

@ -42,7 +42,7 @@ namespace CSMWorld
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.
virtual ~IdTree(); ~IdTree() override;
int rowCount (const QModelIndex & parent = QModelIndex()) const override; int rowCount (const QModelIndex & parent = QModelIndex()) const override;

@ -30,7 +30,7 @@ namespace CSMWorld
public: public:
NestedIdCollection (); NestedIdCollection ();
~NestedIdCollection(); ~NestedIdCollection() override;
void addNestedRow(int row, int column, int position) override; void addNestedRow(int row, int column, int position) override;

@ -22,7 +22,7 @@ namespace CSMWorld
public: public:
NestedInfoCollection (); NestedInfoCollection ();
~NestedInfoCollection(); ~NestedInfoCollection() override;
void addNestedRow(int row, int column, int position) override; void addNestedRow(int row, int column, int position) override;

@ -20,7 +20,7 @@ namespace CSMWorld
NestedTableWrapper(const NestedTable& nestedTable) NestedTableWrapper(const NestedTable& nestedTable)
: mNestedTable(nestedTable) {} : mNestedTable(nestedTable) {}
virtual ~NestedTableWrapper() {} ~NestedTableWrapper() override {}
int size() const override int size() const override
{ {

@ -384,7 +384,7 @@ namespace CSMWorld
IngredEffectRefIdAdapter(); IngredEffectRefIdAdapter();
virtual ~IngredEffectRefIdAdapter(); ~IngredEffectRefIdAdapter() override;
void addNestedRow (const RefIdColumn *column, void addNestedRow (const RefIdColumn *column,
RefIdData& data, int index, int position) const override; RefIdData& data, int index, int position) const override;
@ -998,7 +998,7 @@ namespace CSMWorld
public: public:
NpcMiscRefIdAdapter (); NpcMiscRefIdAdapter ();
virtual ~NpcMiscRefIdAdapter(); ~NpcMiscRefIdAdapter() override;
void addNestedRow (const RefIdColumn *column, void addNestedRow (const RefIdColumn *column,
RefIdData& data, int index, int position) const override; RefIdData& data, int index, int position) const override;
@ -1089,7 +1089,7 @@ namespace CSMWorld
public: public:
CreatureMiscRefIdAdapter (); CreatureMiscRefIdAdapter ();
virtual ~CreatureMiscRefIdAdapter(); ~CreatureMiscRefIdAdapter() override;
void addNestedRow (const RefIdColumn *column, void addNestedRow (const RefIdColumn *column,
RefIdData& data, int index, int position) const override; RefIdData& data, int index, int position) const override;

@ -58,7 +58,7 @@ namespace CSMWorld
RefIdCollection(); RefIdCollection();
virtual ~RefIdCollection(); ~RefIdCollection() override;
int getSize() const override; int getSize() const override;

@ -16,7 +16,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);
virtual ~ResourceTable(); ~ResourceTable() override;
int rowCount (const QModelIndex & parent = QModelIndex()) const override; int rowCount (const QModelIndex & parent = QModelIndex()) const override;

@ -75,7 +75,7 @@ namespace CSVDoc
Loader(); Loader();
virtual ~Loader(); ~Loader() override;
signals: signals:

@ -28,7 +28,7 @@ namespace CSVDoc
public: public:
Operation (int type, QWidget *parent); Operation (int type, QWidget *parent);
~Operation(); ~Operation() override;
void setProgress (int current, int max, int threads); void setProgress (int current, int max, int threads);

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

@ -110,7 +110,7 @@ namespace CSVDoc
///< The ownership of \a document is not transferred to *this. ///< The ownership of \a document is not transferred to *this.
virtual ~View(); ~View() override;
const CSMDoc::Document *getDocument() const; const CSMDoc::Document *getDocument() const;

@ -52,7 +52,7 @@ namespace CSVDoc
ViewManager (CSMDoc::DocumentManager& documentManager); ViewManager (CSMDoc::DocumentManager& documentManager);
virtual ~ViewManager(); ~ViewManager() override;
View *addView (CSMDoc::Document *document); View *addView (CSMDoc::Document *document);
///< The ownership of the returned view is not transferred. ///< The ownership of the returned view is not transferred.

@ -30,7 +30,7 @@ namespace CSVPrefs
Dialogue(); Dialogue();
virtual ~Dialogue(); ~Dialogue() override;
protected: protected:

@ -61,7 +61,7 @@ namespace CSVWorld
const CSMWorld::UniversalId& id, const CSMWorld::UniversalId& id,
QWidget *parent = nullptr); QWidget *parent = nullptr);
virtual ~TableBottomBox(); ~TableBottomBox() override;
bool eventFilter(QObject *object, QEvent *event) override; bool eventFilter(QObject *object, QEvent *event) override;

Loading…
Cancel
Save