Gui: redundant void 2
This commit is contained in:
@@ -962,7 +962,7 @@ void SelectionSingleton::rmvPreselect(bool signal)
|
||||
notify(std::move(Chng));
|
||||
}
|
||||
|
||||
const SelectionChanges &SelectionSingleton::getPreselection(void) const
|
||||
const SelectionChanges &SelectionSingleton::getPreselection() const
|
||||
{
|
||||
return CurrentPreselection;
|
||||
}
|
||||
@@ -978,7 +978,7 @@ void SelectionSingleton::addSelectionGate(Gui::SelectionGate *gate, ResolveMode
|
||||
}
|
||||
|
||||
// remove the active SelectionGate
|
||||
void SelectionSingleton::rmvSelectionGate(void)
|
||||
void SelectionSingleton::rmvSelectionGate()
|
||||
{
|
||||
if (ActiveGate) {
|
||||
delete ActiveGate;
|
||||
@@ -1816,14 +1816,14 @@ SelectionSingleton::~SelectionSingleton()
|
||||
|
||||
SelectionSingleton* SelectionSingleton::_pcSingleton = nullptr;
|
||||
|
||||
SelectionSingleton& SelectionSingleton::instance(void)
|
||||
SelectionSingleton& SelectionSingleton::instance()
|
||||
{
|
||||
if (!_pcSingleton)
|
||||
_pcSingleton = new SelectionSingleton;
|
||||
return *_pcSingleton;
|
||||
}
|
||||
|
||||
void SelectionSingleton::destruct (void)
|
||||
void SelectionSingleton::destruct ()
|
||||
{
|
||||
if (_pcSingleton)
|
||||
delete _pcSingleton;
|
||||
@@ -1886,7 +1886,7 @@ PyMethodDef SelectionSingleton::Methods[] = {
|
||||
"obj : App.DocumentObject\n Object to check.\n"
|
||||
"subName : str\n Name of the subelement.\n"
|
||||
"resolve : int\n Resolve subelement reference."},
|
||||
{"setPreselection", reinterpret_cast<PyCFunction>(reinterpret_cast<void (*) (void)>( SelectionSingleton::sSetPreselection )), METH_VARARGS|METH_KEYWORDS,
|
||||
{"setPreselection", reinterpret_cast<PyCFunction>(reinterpret_cast<void (*) ()>( SelectionSingleton::sSetPreselection )), METH_VARARGS|METH_KEYWORDS,
|
||||
"setPreselection(obj, subName, x=0, y=0, z=0, type=1) -> None\n"
|
||||
"\n"
|
||||
"Set preselected object.\n"
|
||||
|
||||
Reference in New Issue
Block a user