Gui: redundant void 2
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user