add protected default constructor of SelectionFilterGate to simplifiy writing of sub-classes
This commit is contained in:
@@ -62,6 +62,11 @@ SelectionFilterGate::SelectionFilterGate(SelectionFilter* filter)
|
||||
Filter = filter;
|
||||
}
|
||||
|
||||
SelectionFilterGate::SelectionFilterGate()
|
||||
{
|
||||
Filter = nullptr;
|
||||
}
|
||||
|
||||
SelectionFilterGate::~SelectionFilterGate()
|
||||
{
|
||||
delete Filter;
|
||||
|
||||
@@ -108,6 +108,9 @@ public:
|
||||
~SelectionFilterGate();
|
||||
virtual bool allow(App::Document*,App::DocumentObject*, const char*);
|
||||
|
||||
protected:
|
||||
SelectionFilterGate();
|
||||
|
||||
protected:
|
||||
SelectionFilter *Filter;
|
||||
};
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace PartGui {
|
||||
const App::DocumentObject* object;
|
||||
public:
|
||||
FaceSelection(const App::DocumentObject* obj)
|
||||
: Gui::SelectionFilterGate((Gui::SelectionFilter*)0), object(obj)
|
||||
: Gui::SelectionFilterGate(), object(obj)
|
||||
{
|
||||
}
|
||||
bool allow(App::Document* /*pDoc*/, App::DocumentObject*pObj, const char*sSubName)
|
||||
|
||||
Reference in New Issue
Block a user