Skip to content
Snippets Groups Projects
Commit ca5c9f51 authored by Wuttke, Joachim's avatar Wuttke, Joachim Committed by Wuttke, Joachim
Browse files

class -> namespace

parent dceae821
Branches
Tags
1 merge request!2052simplify SampleValidator (class -> namespace)
......@@ -18,13 +18,11 @@
#include <QString>
class SampleItem;
class LayerItem;
class ItemWithParticles;
//! Validates whether SampleItem is suitable for simulation
class SampleValidator {
public:
namespace SampleValidator {
QString isValidSample(const SampleItem* sample);
};
}
#endif // BORNAGAIN_GUI_MODEL_SAMPLE_SAMPLEVALIDATOR_H
......@@ -229,7 +229,7 @@ QString SimulationView::validateSimulationSetup(bool validateRealData) const
if (!selectedSampleItem())
append("No sample selected");
else {
QString m = SampleValidator().isValidSample(selectedSampleItem());
QString m = SampleValidator::isValidSample(selectedSampleItem());
if (!m.isEmpty())
append(m);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment