Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit c7f71800 authored by Emmanuel Promayon's avatar Emmanuel Promayon
Browse files

UPDATED using "= default" for empty implementation

parent 22ae6f47
......@@ -52,14 +52,12 @@ ConnectedComponents::ConnectedComponents(ActionExtension* extension) : Action(ex
}
// --------------- destructor -------------------
ConnectedComponents::~ConnectedComponents() {
}
// --------------- getNbConnectedComponents -------------------
int ConnectedComponents::getNbConnectedComponents() const {
return nbConnectedComponents;
}
// --------------- setNbConnectedComponents -------------------
void ConnectedComponents::setNbConnectedComponents(const int nbConnectedComponents) {
this->nbConnectedComponents = nbConnectedComponents;
}
......
......@@ -52,7 +52,7 @@ public:
ConnectedComponents(camitk::ActionExtension*);
/// Default Destructor
virtual ~ConnectedComponents();
virtual ~ConnectedComponents() = default;
public slots:
/** this method is automatically called when the action is triggered.
......
......@@ -50,10 +50,6 @@ GradientMagnitude::GradientMagnitude(ActionExtension* extension) : Action(extens
this->addTag("Contours");
}
// --------------- destructor -------------------
GradientMagnitude::~GradientMagnitude() {
}
// --------------- apply -------------------
Action::ApplyStatus GradientMagnitude::apply() {
foreach (Component * comp, getTargets()) {
......
......@@ -48,7 +48,7 @@ public:
GradientMagnitude(camitk::ActionExtension*);
/// Default Destructor
virtual ~GradientMagnitude();
virtual ~GradientMagnitude() = default;
public slots:
/** this method is automatically called when the action is triggered.
......
......@@ -54,10 +54,6 @@ LaplacianSharpening::LaplacianSharpening(ActionExtension* extension) : Action(ex
}
// --------------- destructor -------------------
LaplacianSharpening::~LaplacianSharpening() {
}
// --------------- apply -------------------
Action::ApplyStatus LaplacianSharpening::apply() {
foreach (Component * comp, getTargets()) {
......
......@@ -48,7 +48,7 @@ public:
LaplacianSharpening(camitk::ActionExtension*);
/// Default Destructor
virtual ~LaplacianSharpening();
virtual ~LaplacianSharpening() = default;
public slots:
/** this method is automatically called when the action is triggered.
......
......@@ -58,10 +58,6 @@ SobelEdgeDetection::SobelEdgeDetection(ActionExtension* extension) : Action(exte
addParameter(keepOrgVoxelTypeProperty);
}
// --------------- destructor -------------------
SobelEdgeDetection::~SobelEdgeDetection() {
}
// --------------- apply -------------------
Action::ApplyStatus SobelEdgeDetection::apply() {
foreach (Component* comp, getTargets()) {
......
......@@ -50,7 +50,7 @@ public:
SobelEdgeDetection(camitk::ActionExtension*);
/// Default Destructor
virtual ~SobelEdgeDetection();
virtual ~SobelEdgeDetection() = default;
public slots:
/** this method is automatically called when the action is triggered.
......
......@@ -45,7 +45,7 @@ public:
ITKSegmentationExtension() : ActionExtension() {};
/// the destructor
virtual ~ITKSegmentationExtension() {};
virtual ~ITKSegmentationExtension() = default;
/// Method that return the action extension name
virtual QString getName() {
......
......@@ -40,11 +40,6 @@ RegionGrowingWidget::RegionGrowingWidget(Action* action)
ui.seedPointGroupBox->layout()->addWidget(pickingW);
QObject::connect(ui.applyButton, SIGNAL(clicked()), myAction, SLOT(apply()));
}
RegionGrowingWidget::~RegionGrowingWidget() {
}
bool RegionGrowingWidget::isSmoothingChecked() {
......
......@@ -49,7 +49,7 @@ public:
RegionGrowingWidget(camitk::Action* action);
/// destructor
~RegionGrowingWidget() override;
~RegionGrowingWidget() override = default;
/// Update the widget with the correct PickedPixelMap (ImageComponent + Qlist of the selected points)
void updateComponent(camitk::ImageComponent* image);
......
......@@ -56,7 +56,7 @@ class DicomComponentExtension : public camitk::ComponentExtension {
public:
/// Constructor
DicomComponentExtension() : ComponentExtension() {}
DicomComponentExtension() : ComponentExtension() = default;
/// Method returning the component extension name
virtual QString getName() const {
......@@ -89,7 +89,7 @@ public:
protected:
/// Destructor
virtual ~DicomComponentExtension() {}
virtual ~DicomComponentExtension() = default;
private:
/// Last opened component. When opening the directory, create 1 component per files
......
......@@ -65,9 +65,6 @@ DicomDialog::DicomDialog(QList<DicomDialogEntry*> elements): QDialog() {
exec();
}
//--------------- Destructor ---------------------------------
DicomDialog::~DicomDialog() {}
//--------------- getSelectedDicomDialogEntries ---------------------------------
QList<DicomDialogEntry*> DicomDialog::getSelectedDicomDialogEntries() {
......
......@@ -34,11 +34,6 @@ DicomDialogEntry::DicomDialogEntry() {
patientName = "NOT FOUND";
}
// --------------- Destructor -------------------
DicomDialogEntry::~DicomDialogEntry() {
}
// --------------- Getters -------------------
bool DicomDialogEntry::isSelected() {
return selected;
......
......@@ -45,7 +45,7 @@ public:
DicomDialogEntry();
/// Default Destructor
virtual ~DicomDialogEntry();
virtual ~DicomDialogEntry() = default;
///@name Getters
///@{
......
......@@ -54,10 +54,10 @@ Q_DECLARE_TR_FUNCTIONS(DicomParser)
public:
DicomParser() {};
DicomParser() = default;
/// Default Destructor
virtual ~DicomParser() {};
virtual ~DicomParser() = default;
/**
* @brief Parse the input directory for DICOM series.
......
......@@ -34,11 +34,6 @@ DicomSerie::DicomSerie() {
patientName = "NOT FOUND";
}
// --------------- Destructor -------------------
DicomSerie::~DicomSerie() {
}
// --------------- Getters -------------------
QDate DicomSerie::getAcquisitionDate() const {
return acquisitionDate;
......
......@@ -53,7 +53,7 @@ public:
DicomSerie();
/// Default Destructor
virtual ~DicomSerie();
virtual ~DicomSerie() = default;
///@name Getters
///@{
......
......@@ -44,7 +44,7 @@ public:
ItkImageComponent(const QString&) throw (camitk::AbortException);
/// needed for deleting
virtual ~ItkImageComponent() {};
virtual ~ItkImageComponent() = default;
virtual void createComponent(const QString&);
......
......@@ -43,7 +43,7 @@ class ItkImageComponentExtension : public camitk::ImageComponentExtension {
public:
/// the constructor (do nothing really)
ItkImageComponentExtension() : ImageComponentExtension() {}
ItkImageComponentExtension() : ImageComponentExtension() = default;
/// get the plugin name
virtual QString getName() const;
......@@ -65,7 +65,7 @@ public:
protected:
/// the destructor
virtual ~ItkImageComponentExtension() {};
virtual ~ItkImageComponentExtension() = default;
template <class ImageType> static bool saveImage(camitk::ImageComponent*);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment