Mod: Use override etc 2

This commit is contained in:
berniev
2022-08-09 11:53:46 +10:00
committed by wwmayer
parent 75fa455c5d
commit 71dc5ead2f
697 changed files with 4956 additions and 4956 deletions

View File

@@ -27,7 +27,7 @@ public:
initialize("This module is the Image module."); // register with Python
}
virtual ~Module() {}
~Module() override {}
private:
};

View File

@@ -38,14 +38,14 @@ class ImageExport ImagePlane : public App::GeoFeature
public:
/// Constructor
ImagePlane();
virtual ~ImagePlane();
~ImagePlane() override;
App::PropertyFileIncluded ImageFile;
App::PropertyLength XSize;
App::PropertyLength YSize;
/// returns the type name of the ViewProvider
virtual const char* getViewProviderName() const {
const char* getViewProviderName() const override {
return "ImageGui::ViewProviderImagePlane";
}
};

View File

@@ -53,7 +53,7 @@ public:
initialize("This module is the ImageGui module."); // register with Python
}
virtual ~Module() {}
~Module() override {}
private:
Py::Object open(const Py::Tuple& args)

View File

@@ -35,12 +35,12 @@ class ImageOrientationDialog : public QDialog
public:
ImageOrientationDialog();
~ImageOrientationDialog();
~ImageOrientationDialog() override;
Base::Placement Pos;
int DirType;
void accept();
void accept() override;
protected Q_SLOTS:
void onPreview();

View File

@@ -44,12 +44,12 @@ public:
ViewProviderImagePlane();
/// destructor.
~ViewProviderImagePlane();
~ViewProviderImagePlane() override;
void attach(App::DocumentObject *pcObject);
void setDisplayMode(const char* ModeName);
std::vector<std::string> getDisplayModes() const;
void updateData(const App::Property*);
void attach(App::DocumentObject *pcObject) override;
void setDisplayMode(const char* ModeName) override;
std::vector<std::string> getDisplayModes() const override;
void updateData(const App::Property*) override;
private:
bool loadSvg(const char*, float x, float y, QImage& img);

View File

@@ -37,11 +37,11 @@ class ImageGuiExport Workbench : public Gui::StdWorkbench
public:
Workbench();
virtual ~Workbench();
~Workbench() override;
protected:
Gui::ToolBarItem* setupToolBars() const;
Gui::ToolBarItem* setupCommandBars() const;
Gui::ToolBarItem* setupToolBars() const override;
Gui::ToolBarItem* setupCommandBars() const override;
};
} // namespace ImageGui