Gui: redundant void 2

This commit is contained in:
berniev
2022-08-08 11:50:44 +10:00
committed by wwmayer
parent ec72d96038
commit 656ef8961f
160 changed files with 784 additions and 784 deletions

View File

@@ -230,7 +230,7 @@ void ControlSingleton::closedDialog()
| QDockWidget::DockWidgetFloatable);
}
bool ControlSingleton::isAllowedAlterDocument(void) const
bool ControlSingleton::isAllowedAlterDocument() const
{
if (ActiveDialog)
return ActiveDialog->isAllowedAlterDocument();
@@ -238,14 +238,14 @@ bool ControlSingleton::isAllowedAlterDocument(void) const
}
bool ControlSingleton::isAllowedAlterView(void) const
bool ControlSingleton::isAllowedAlterView() const
{
if (ActiveDialog)
return ActiveDialog->isAllowedAlterView();
return true;
}
bool ControlSingleton::isAllowedAlterSelection(void) const
bool ControlSingleton::isAllowedAlterSelection() const
{
if (ActiveDialog)
return ActiveDialog->isAllowedAlterSelection();
@@ -254,14 +254,14 @@ bool ControlSingleton::isAllowedAlterSelection(void) const
// -------------------------------------------
ControlSingleton& ControlSingleton::instance(void)
ControlSingleton& ControlSingleton::instance()
{
if (!_pcSingleton)
_pcSingleton = new ControlSingleton;
return *_pcSingleton;
}
void ControlSingleton::destruct (void)
void ControlSingleton::destruct ()
{
if (_pcSingleton)
delete _pcSingleton;