Mod: Use override etc 2
This commit is contained in:
@@ -27,7 +27,7 @@ public:
|
||||
initialize("This module is the Image module."); // register with Python
|
||||
}
|
||||
|
||||
virtual ~Module() {}
|
||||
~Module() override {}
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user