Gui: modernize C++: use equals default

This commit is contained in:
wmayer
2023-08-20 18:12:43 +02:00
parent 3e35b5f606
commit c016f1c1fb
188 changed files with 408 additions and 1124 deletions
+2 -6
View File
@@ -50,9 +50,7 @@ ActionFunction::ActionFunction(QObject* parent)
{
}
ActionFunction::~ActionFunction()
{
}
ActionFunction::~ActionFunction() = default;
void ActionFunction::trigger(QAction* action, std::function<void()> func)
{
@@ -135,9 +133,7 @@ TimerFunction::TimerFunction(QObject* parent)
d_ptr->autoDelete = false;
}
TimerFunction::~TimerFunction()
{
}
TimerFunction::~TimerFunction() = default;
void TimerFunction::setFunction(std::function<void()> func)
{
+2 -6
View File
@@ -66,9 +66,7 @@ AutoSaver::AutoSaver(QObject* parent)
//NOLINTEND
}
AutoSaver::~AutoSaver()
{
}
AutoSaver::~AutoSaver() = default;
AutoSaver* AutoSaver::instance()
{
@@ -290,9 +288,7 @@ RecoveryWriter::RecoveryWriter(AutoSaveProperty& saver)
{
}
RecoveryWriter::~RecoveryWriter()
{
}
RecoveryWriter::~RecoveryWriter() = default;
bool RecoveryWriter::shouldWrite(const std::string& name, const Base::Persistence *object) const
{
+1 -3
View File
@@ -43,9 +43,7 @@ BlenderNavigationStyle::BlenderNavigationStyle() : lockButton1(false)
{
}
BlenderNavigationStyle::~BlenderNavigationStyle()
{
}
BlenderNavigationStyle::~BlenderNavigationStyle() = default;
const char* BlenderNavigationStyle::mouseButtons(ViewerMode mode)
{
+1 -3
View File
@@ -42,9 +42,7 @@ CADNavigationStyle::CADNavigationStyle() : lockButton1(false)
{
}
CADNavigationStyle::~CADNavigationStyle()
{
}
CADNavigationStyle::~CADNavigationStyle() = default;
const char* CADNavigationStyle::mouseButtons(ViewerMode mode)
{
+1 -3
View File
@@ -120,9 +120,7 @@ CallTipsList::CallTipsList(QPlainTextEdit* parent)
compKeys.append(Qt::Key_BraceRight);
}
CallTipsList::~CallTipsList()
{
}
CallTipsList::~CallTipsList() = default;
void CallTipsList::keyboardSearch(const QString& wordPrefix)
{
+1 -3
View File
@@ -87,9 +87,7 @@ ComboView::ComboView(bool showModel, Gui::Document* pcDocument, QWidget *parent)
//tabs->addTab(projectView, tr("Project"));
}
ComboView::~ComboView()
{
}
ComboView::~ComboView() = default;
void ComboView::showDialog(Gui::TaskView::TaskDialog *dlg)
{
+3 -9
View File
@@ -228,9 +228,7 @@ Command::Command(const char* name)
bCanLog = true;
}
Command::~Command()
{
}
Command::~Command() = default;
void Command::setShortcut(const QString &shortcut)
{
@@ -1118,9 +1116,7 @@ MacroCommand::MacroCommand(const char* name, bool system)
sScriptName = nullptr;
}
MacroCommand::~MacroCommand()
{
}
MacroCommand::~MacroCommand() = default;
void MacroCommand::activated(int iMsg)
{
@@ -1787,9 +1783,7 @@ void PythonGroupCommand::onActionInit() const
// CommandManager
//===========================================================================
CommandManager::CommandManager()
{
}
CommandManager::CommandManager() = default;
CommandManager::~CommandManager()
{
+1 -3
View File
@@ -46,9 +46,7 @@ CommandActionPy::CommandActionPy(Py::PythonClassInstance* self, Py::Tuple& args,
cmd = Application::Instance->commandManager().getCommandByName(name);
}
CommandActionPy::~CommandActionPy()
{
}
CommandActionPy::~CommandActionPy() = default;
Py::Object CommandActionPy::getAction()
{
+1 -1
View File
@@ -855,7 +855,7 @@ class StdCmdUserEditMode : public Gui::Command
{
public:
StdCmdUserEditMode();
~StdCmdUserEditMode() override{}
~StdCmdUserEditMode() override = default;
void languageChange() override;
const char* className() const override {return "StdCmdUserEditMode";}
void updateIcon(int mode);
+1 -3
View File
@@ -567,9 +567,7 @@ public:
explicit BarThread(unsigned long s) : steps(s)
{
}
~BarThread() override
{
}
~BarThread() override = default;
void run() override
{
QMutex mutex;
+2 -2
View File
@@ -287,7 +287,7 @@ class StdCmdFreezeViews : public Gui::Command
{
public:
StdCmdFreezeViews();
~StdCmdFreezeViews() override{}
~StdCmdFreezeViews() override = default;
const char* className() const override
{ return "StdCmdFreezeViews"; }
@@ -636,7 +636,7 @@ class StdCmdDrawStyle : public Gui::Command
{
public:
StdCmdDrawStyle();
~StdCmdDrawStyle() override{}
~StdCmdDrawStyle() override = default;
void languageChange() override;
const char* className() const override {return "StdCmdDrawStyle";}
void updateIcon(const Gui::MDIView* view);
+1 -4
View File
@@ -54,10 +54,7 @@ ControlSingleton::ControlSingleton()
}
ControlSingleton::~ControlSingleton()
{
}
ControlSingleton::~ControlSingleton() = default;
Gui::TaskView::TaskView* ControlSingleton::taskPanel() const
{
+1 -1
View File
@@ -84,7 +84,7 @@ namespace Gui
void editingFinishedSlot();
private:
Model(){}
Model() = default;
//documentObject slots.
using Connection = boost::signals2::connection;
Connection connectNewObject;
+1 -3
View File
@@ -60,9 +60,7 @@ View::View(QWidget* parentIn): QGraphicsView(parentIn)
this, &View::awakeSlot);
}
View::~View()
{
}
View::~View() = default;
void View::slotActiveDocument(const Document &documentIn)
{
+1 -1
View File
@@ -67,7 +67,7 @@ namespace Gui
Q_OBJECT
public:
explicit DockWindow(Gui::Document* gDocumentIn = nullptr, QWidget *parent = nullptr);
~DockWindow() override{}
~DockWindow() override = default;
private:
View *dagView;
+1 -3
View File
@@ -564,9 +564,7 @@ IconFolders::IconFolders(const QStringList& paths, QWidget* parent)
addButton->setDisabled(true);
}
IconFolders::~IconFolders()
{
}
IconFolders::~IconFolders() = default;
void IconFolders::addFolder()
{
+3 -6
View File
@@ -56,8 +56,8 @@ DlgAddProperty::DlgAddProperty(QWidget* parent,
std::vector<Base::Type> types;
Base::Type::getAllDerivedFrom(Base::Type::fromName("App::Property"),types);
std::sort(types.begin(), types.end(), [](Base::Type a, Base::Type b) { return strcmp(a.getName(), b.getName()) < 0; });
std::sort(types.begin(), types.end(), [](Base::Type a, Base::Type b) { return strcmp(a.getName(), b.getName()) < 0; });
for(const auto& type : types) {
ui->comboType->addItem(QString::fromLatin1(type.getName()));
if(type == defType)
@@ -72,10 +72,7 @@ DlgAddProperty::DlgAddProperty(QWidget* parent,
/**
* Destroys the object and frees any allocated resources
*/
DlgAddProperty::~DlgAddProperty()
{
// no need to delete child widgets, Qt does it all for us
}
DlgAddProperty::~DlgAddProperty() = default;
static std::string containerName(const App::PropertyContainer *c) {
auto doc = Base::freecad_dynamic_cast<App::Document>(c);
+1 -3
View File
@@ -57,9 +57,7 @@ DlgCreateNewPreferencePackImp::DlgCreateNewPreferencePackImp(QWidget* parent)
}
DlgCreateNewPreferencePackImp::~DlgCreateNewPreferencePackImp()
{
}
DlgCreateNewPreferencePackImp::~DlgCreateNewPreferencePackImp() = default;
void DlgCreateNewPreferencePackImp::setPreferencePackTemplates(const std::vector<Gui::PreferencePackManager::TemplateFile>& availableTemplates)
{
+1 -4
View File
@@ -104,10 +104,7 @@ DlgCustomizeImp::DlgCustomizeImp(QWidget* parent, Qt::WindowFlags fl)
/**
* Destroys the object and frees any allocated resources
*/
DlgCustomizeImp::~DlgCustomizeImp()
{
// no need to delete child widgets, Qt does it all for us
}
DlgCustomizeImp::~DlgCustomizeImp() = default;
/**
* Adds a customize page with its class name \a className.
+1 -3
View File
@@ -51,9 +51,7 @@ DlgCustomizeSpNavSettings::DlgCustomizeSpNavSettings(QWidget *parent) :
initialize();
}
DlgCustomizeSpNavSettings::~DlgCustomizeSpNavSettings()
{
}
DlgCustomizeSpNavSettings::~DlgCustomizeSpNavSettings() = default;
void DlgCustomizeSpNavSettings::setupConnections()
{
+1 -4
View File
@@ -690,10 +690,7 @@ DlgCustomizeSpaceball::DlgCustomizeSpaceball(QWidget *parent)
connect(printReference, &QPushButton::clicked, this, &DlgCustomizeSpaceball::goPrint);
}
DlgCustomizeSpaceball::~DlgCustomizeSpaceball()
{
}
DlgCustomizeSpaceball::~DlgCustomizeSpaceball() = default;
void DlgCustomizeSpaceball::setMessage(const QString& message)
{
+1 -4
View File
@@ -632,10 +632,7 @@ TaskDisplayProperties::TaskDisplayProperties()
Content.push_back(taskbox);
}
TaskDisplayProperties::~TaskDisplayProperties()
{
// automatically deleted in the sub-class
}
TaskDisplayProperties::~TaskDisplayProperties() = default;
QDialogButtonBox::StandardButtons TaskDisplayProperties::getStandardButtons() const
{
@@ -49,11 +49,7 @@ DlgEditFileIncludePropertyExternal(App::PropertyFileIncluded& Prop,
/**
* Destroys the object and frees any allocated resources
*/
DlgEditFileIncludePropertyExternal::~DlgEditFileIncludePropertyExternal()
{
// no need to delete child widgets, Qt does it all for us
}
DlgEditFileIncludePropertyExternal::~DlgEditFileIncludePropertyExternal() = default;
int DlgEditFileIncludePropertyExternal::processFile()
{
+1 -4
View File
@@ -61,10 +61,7 @@ DlgInputDialogImp::DlgInputDialogImp( const QString& labelTxt, QWidget* parent,
/**
* Destroys the object and frees any allocated resources
*/
DlgInputDialogImp::~DlgInputDialogImp()
{
// no need to delete child widgets, Qt does it all for us
}
DlgInputDialogImp::~DlgInputDialogImp() = default;
void DlgInputDialogImp::textChanged( const QString &s )
{
+1 -3
View File
@@ -111,9 +111,7 @@ DlgCustomKeyboardImp::DlgCustomKeyboardImp( QWidget* parent )
}
/** Destroys the object and frees any allocated resources */
DlgCustomKeyboardImp::~DlgCustomKeyboardImp()
{
}
DlgCustomKeyboardImp::~DlgCustomKeyboardImp() = default;
void DlgCustomKeyboardImp::setupConnections()
{
+2 -5
View File
@@ -58,7 +58,7 @@ namespace Gui {
: QTreeWidgetItem(widget),
systemWide(systemwide){}
~MacroItem() override{}
~MacroItem() override = default;
bool systemWide;
};
@@ -104,10 +104,7 @@ DlgMacroExecuteImp::DlgMacroExecuteImp( QWidget* parent, Qt::WindowFlags fl )
/**
* Destroys the object and frees any allocated resources
*/
DlgMacroExecuteImp::~DlgMacroExecuteImp()
{
// no need to delete child widgets, Qt does it all for us
}
DlgMacroExecuteImp::~DlgMacroExecuteImp() = default;
void DlgMacroExecuteImp::setupConnections()
{
+1 -4
View File
@@ -73,10 +73,7 @@ DlgMacroRecordImp::DlgMacroRecordImp( QWidget* parent, Qt::WindowFlags fl )
/**
* Destroys the object and frees any allocated resources
*/
DlgMacroRecordImp::~DlgMacroRecordImp()
{
// no need to delete child widgets, Qt does it all for us
}
DlgMacroRecordImp::~DlgMacroRecordImp() = default;
void DlgMacroRecordImp::setupConnections()
{
+1 -3
View File
@@ -64,9 +64,7 @@ DlgMaterialPropertiesImp::DlgMaterialPropertiesImp(const std::string& mat, QWidg
/**
* Destroys the object and frees any allocated resources
*/
DlgMaterialPropertiesImp::~DlgMaterialPropertiesImp()
{
}
DlgMaterialPropertiesImp::~DlgMaterialPropertiesImp() = default;
void DlgMaterialPropertiesImp::setupConnections()
{
+1 -3
View File
@@ -58,9 +58,7 @@ DlgOnlineHelpImp::DlgOnlineHelpImp( QWidget* parent )
/**
* Destroys the object and frees any allocated resources
*/
DlgOnlineHelpImp::~DlgOnlineHelpImp()
{
}
DlgOnlineHelpImp::~DlgOnlineHelpImp() = default;
/**
* Returns the start page for the HelpView. If none is defined the default
+8 -24
View File
@@ -479,9 +479,7 @@ ParameterGroup::ParameterGroup( QWidget * parent )
menuEdit->setDefaultAction(expandAct);
}
ParameterGroup::~ParameterGroup()
{
}
ParameterGroup::~ParameterGroup() = default;
void ParameterGroup::contextMenuEvent ( QContextMenuEvent* event )
{
@@ -680,9 +678,7 @@ ParameterValue::ParameterValue( QWidget * parent )
this, qOverload<QTreeWidgetItem*, int>(&ParameterValue::onChangeSelectedItem));
}
ParameterValue::~ParameterValue()
{
}
ParameterValue::~ParameterValue() = default;
void ParameterValue::setCurrentGroup( const Base::Reference<ParameterGrp>& hGrp )
{
@@ -1020,9 +1016,7 @@ ParameterValueItem::ParameterValueItem ( QTreeWidget* parent, const Base::Refere
setFlags(flags() | Qt::ItemIsEditable);
}
ParameterValueItem::~ParameterValueItem()
{
}
ParameterValueItem::~ParameterValueItem() = default;
void ParameterValueItem::setData ( int column, int role, const QVariant & value )
{
@@ -1052,9 +1046,7 @@ ParameterText::ParameterText ( QTreeWidget * parent, QString label, const char*
setText(2, QString::fromUtf8(value));
}
ParameterText::~ParameterText()
{
}
ParameterText::~ParameterText() = default;
void ParameterText::changeValue()
{
@@ -1096,9 +1088,7 @@ ParameterInt::ParameterInt ( QTreeWidget * parent, QString label, long value, co
setText(2, QString::fromLatin1("%1").arg(value));
}
ParameterInt::~ParameterInt()
{
}
ParameterInt::~ParameterInt() = default;
void ParameterInt::changeValue()
{
@@ -1140,9 +1130,7 @@ ParameterUInt::ParameterUInt ( QTreeWidget * parent, QString label, unsigned lon
setText(2, QString::fromLatin1("%1").arg(value));
}
ParameterUInt::~ParameterUInt()
{
}
ParameterUInt::~ParameterUInt() = default;
void ParameterUInt::changeValue()
{
@@ -1193,9 +1181,7 @@ ParameterFloat::ParameterFloat ( QTreeWidget * parent, QString label, double val
setText(2, QString::fromLatin1("%1").arg(value));
}
ParameterFloat::~ParameterFloat()
{
}
ParameterFloat::~ParameterFloat() = default;
void ParameterFloat::changeValue()
{
@@ -1237,9 +1223,7 @@ ParameterBool::ParameterBool ( QTreeWidget * parent, QString label, bool value,
setText(2, QString::fromLatin1((value ? "true" : "false")));
}
ParameterBool::~ParameterBool()
{
}
ParameterBool::~ParameterBool() = default;
void ParameterBool::changeValue()
{
+1 -3
View File
@@ -212,9 +212,7 @@ void DlgPreferencePackManagementImp::showAddonManager()
close();
}
DlgPreferencePackManagementImp::~DlgPreferencePackManagementImp()
{
}
DlgPreferencePackManagementImp::~DlgPreferencePackManagementImp() = default;
+1 -3
View File
@@ -53,9 +53,7 @@ DlgProjectUtility::DlgProjectUtility(QWidget* parent, Qt::WindowFlags fl)
/**
* Destroys the object and frees any allocated resources
*/
DlgProjectUtility::~DlgProjectUtility()
{
}
DlgProjectUtility::~DlgProjectUtility() = default;
void DlgProjectUtility::extractButton()
{
+1 -3
View File
@@ -46,9 +46,7 @@ DlgRevertToBackupConfigImp::DlgRevertToBackupConfigImp(QWidget* parent)
connect(ui->listWidget, &QListWidget::itemSelectionChanged, this, &DlgRevertToBackupConfigImp::onItemSelectionChanged);
}
DlgRevertToBackupConfigImp::~DlgRevertToBackupConfigImp()
{
}
DlgRevertToBackupConfigImp::~DlgRevertToBackupConfigImp() = default;
void Gui::Dialog::DlgRevertToBackupConfigImp::onItemSelectionChanged()
{
+1 -3
View File
@@ -63,9 +63,7 @@ DlgRunExternal::DlgRunExternal( QWidget* parent, Qt::WindowFlags fl )
/**
* Destroys the object and frees any allocated resources
*/
DlgRunExternal::~DlgRunExternal()
{
}
DlgRunExternal::~DlgRunExternal() = default;
void DlgRunExternal::addArgument(const QString& arg)
{
+1 -4
View File
@@ -77,10 +77,7 @@ DlgSettingsColorGradientImp::DlgSettingsColorGradientImp(const App::ColorGradien
/**
* Destroys the object and frees any allocated resources
*/
DlgSettingsColorGradientImp::~DlgSettingsColorGradientImp()
{
// no need to delete child widgets, Qt does it all for us
}
DlgSettingsColorGradientImp::~DlgSettingsColorGradientImp() = default;
void DlgSettingsColorGradientImp::setupConnections()
{
+1 -4
View File
@@ -63,10 +63,7 @@ DlgSettingsImageImp::DlgSettingsImageImp( QWidget* parent )
/**
* Destroys the object and frees any allocated resources
*/
DlgSettingsImageImp::~DlgSettingsImageImp()
{
// no need to delete child widgets, Qt does it all for us
}
DlgSettingsImageImp::~DlgSettingsImageImp() = default;
void DlgSettingsImageImp::setupConnections()
{
+3 -9
View File
@@ -113,9 +113,7 @@ DlgCustomToolbars::DlgCustomToolbars(DlgCustomToolbars::Type t, QWidget* parent)
}
/** Destroys the object and frees any allocated resources */
DlgCustomToolbars::~DlgCustomToolbars()
{
}
DlgCustomToolbars::~DlgCustomToolbars() = default;
void DlgCustomToolbars::setupConnections()
{
@@ -578,9 +576,7 @@ DlgCustomToolbarsImp::DlgCustomToolbarsImp( QWidget* parent )
}
/** Destroys the object and frees any allocated resources */
DlgCustomToolbarsImp::~DlgCustomToolbarsImp()
{
}
DlgCustomToolbarsImp::~DlgCustomToolbarsImp() = default;
void DlgCustomToolbarsImp::addCustomToolbar(const QString& name)
{
@@ -845,9 +841,7 @@ DlgCustomToolBoxbarsImp::DlgCustomToolBoxbarsImp( QWidget* parent )
}
/** Destroys the object and frees any allocated resources */
DlgCustomToolBoxbarsImp::~DlgCustomToolBoxbarsImp()
{
}
DlgCustomToolBoxbarsImp::~DlgCustomToolBoxbarsImp() = default;
void DlgCustomToolBoxbarsImp::changeEvent(QEvent *e)
{
+2 -8
View File
@@ -50,10 +50,7 @@ UndoDialog::UndoDialog( QWidget* parent )
/**
* Destroys the object and frees any allocated resources.
*/
UndoDialog::~UndoDialog()
{
// no need to delete child widgets, Qt does it all for us
}
UndoDialog::~UndoDialog() = default;
/**
* This method fetches the undo / redo information from the
@@ -99,10 +96,7 @@ RedoDialog::RedoDialog( QWidget* parent )
/**
* Destroys the object and frees any allocated resources.
*/
RedoDialog::~RedoDialog()
{
// no need to delete child widgets, Qt does it all for us
}
RedoDialog::~RedoDialog() = default;
/**
* This method fetches the undo / redo information from the
+1 -3
View File
@@ -134,9 +134,7 @@ DlgUnitsCalculator::DlgUnitsCalculator( QWidget* parent, Qt::WindowFlags fl )
}
/** Destroys the object and frees any allocated resources */
DlgUnitsCalculator::~DlgUnitsCalculator()
{
}
DlgUnitsCalculator::~DlgUnitsCalculator() = default;
void DlgUnitsCalculator::accept()
{
+1 -3
View File
@@ -32,8 +32,6 @@ DockWindow::DockWindow( Gui::Document* pcDocument, QWidget *parent)
{
}
DockWindow::~DockWindow()
{
}
DockWindow::~DockWindow() = default;
#include "moc_DockWindow.cpp"
+2 -6
View File
@@ -37,13 +37,9 @@
using namespace Gui;
DockWindowItems::DockWindowItems()
{
}
DockWindowItems::DockWindowItems() = default;
DockWindowItems::~DockWindowItems()
{
}
DockWindowItems::~DockWindowItems() = default;
void DockWindowItems::addDockWidget(const char* name, Qt::DockWidgetArea pos, bool visibility, bool tabbed)
{
+1 -1
View File
@@ -116,7 +116,7 @@ namespace Gui {
TYPESYSTEM_HEADER_WITH_OVERRIDE();
public:
ApplicationIndex(){}
ApplicationIndex() = default;
int findChild(const Gui::Document& d) const;
Qt::ItemFlags flags() const override;
QVariant data(int role) const override;
+8 -25
View File
@@ -40,9 +40,7 @@ using namespace Gui;
namespace sp = std::placeholders;
DocumentT::DocumentT()
{
}
DocumentT::DocumentT() = default;
DocumentT::DocumentT(Document* doc)
{
@@ -59,9 +57,7 @@ DocumentT::DocumentT(const DocumentT& doc)
document = doc.document;
}
DocumentT::~DocumentT()
{
}
DocumentT::~DocumentT() = default;
void DocumentT::operator=(const DocumentT& doc)
{
@@ -122,9 +118,7 @@ std::string DocumentT::getAppDocumentPython() const
// -----------------------------------------------------------------------------
ViewProviderT::ViewProviderT()
{
}
ViewProviderT::ViewProviderT() = default;
ViewProviderT::ViewProviderT(const ViewProviderT& other)
{
@@ -141,9 +135,7 @@ ViewProviderT::ViewProviderT(const ViewProviderDocumentObject* obj)
*this = obj;
}
ViewProviderT::~ViewProviderT()
{
}
ViewProviderT::~ViewProviderT() = default;
ViewProviderT & ViewProviderT::operator=(const ViewProviderT& obj)
{
@@ -266,9 +258,7 @@ DocumentWeakPtrT::DocumentWeakPtrT(Gui::Document* doc) noexcept
{
}
DocumentWeakPtrT::~DocumentWeakPtrT()
{
}
DocumentWeakPtrT::~DocumentWeakPtrT() = default;
void DocumentWeakPtrT::reset() noexcept
{
@@ -360,10 +350,7 @@ ViewProviderWeakPtrT::ViewProviderWeakPtrT(ViewProviderDocumentObject* obj)
{
}
ViewProviderWeakPtrT::~ViewProviderWeakPtrT()
{
}
ViewProviderWeakPtrT::~ViewProviderWeakPtrT() = default;
ViewProviderDocumentObject* ViewProviderWeakPtrT::_get() const noexcept
{
@@ -409,18 +396,14 @@ bool ViewProviderWeakPtrT::operator!= (const ViewProviderWeakPtrT& p) const noex
// -----------------------------------------------------------------------------
DocumentObserver::DocumentObserver()
{
}
DocumentObserver::DocumentObserver() = default;
DocumentObserver::DocumentObserver(Document* doc)
{
attachDocument(doc);
}
DocumentObserver::~DocumentObserver()
{
}
DocumentObserver::~DocumentObserver() = default;
void DocumentObserver::attachDocument(Document* doc)
{
+1 -2
View File
@@ -240,8 +240,7 @@ class WeakPtrT
public:
explicit WeakPtrT(T* t) : ptr(t) {
}
~WeakPtrT() {
}
~WeakPtrT() = default;
/*!
* \brief reset
+1 -3
View File
@@ -89,9 +89,7 @@ DocumentObserverPython::DocumentObserverPython(const Py::Object& obj) : inst(obj
//NOLINTEND
}
DocumentObserverPython::~DocumentObserverPython()
{
}
DocumentObserverPython::~DocumentObserverPython() = default;
void DocumentObserverPython::slotCreatedDocument(const Gui::Document& Doc)
{
+1 -3
View File
@@ -200,9 +200,7 @@ DocumentRecovery::DocumentRecovery(const QList<QFileInfo>& dirs, QWidget* parent
this->adjustSize();
}
DocumentRecovery::~DocumentRecovery()
{
}
DocumentRecovery::~DocumentRecovery() = default;
bool DocumentRecovery::foundDocuments() const
{
+1 -3
View File
@@ -598,9 +598,7 @@ PythonEditorView::PythonEditorView(PythonEditor* editor, QWidget* parent)
editor, &PythonEditor::setFileName);
}
PythonEditorView::~PythonEditorView()
{
}
PythonEditorView::~PythonEditorView() = default;
/**
* Runs the action specified by \a pMsg.
+1 -3
View File
@@ -53,9 +53,7 @@ ExpressionBinding::ExpressionBinding()
}
ExpressionBinding::~ExpressionBinding()
{
}
ExpressionBinding::~ExpressionBinding() = default;
bool ExpressionBinding::isBound() const
{
+1 -3
View File
@@ -51,9 +51,7 @@ ExpressionBindingPy::ExpressionBindingPy(Py::PythonClassInstance* self, Py::Tupl
}
}
ExpressionBindingPy::~ExpressionBindingPy()
{
}
ExpressionBindingPy::~ExpressionBindingPy() = default;
ExpressionBinding* ExpressionBindingPy::asBinding(QWidget* obj)
{
+6 -18
View File
@@ -80,9 +80,7 @@ FileDialog::FileDialog(QWidget * parent)
connect(this, &QFileDialog::filterSelected, this, &FileDialog::onSelectedFilter);
}
FileDialog::~FileDialog()
{
}
FileDialog::~FileDialog() = default;
void FileDialog::onSelectedFilter(const QString& /*filter*/)
{
@@ -455,9 +453,7 @@ FileOptionsDialog::FileOptionsDialog( QWidget* parent, Qt::WindowFlags fl )
connect(extensionButton, &QPushButton::clicked, this, &FileOptionsDialog::toggleExtension);
}
FileOptionsDialog::~FileOptionsDialog()
{
}
FileOptionsDialog::~FileOptionsDialog() = default;
void FileOptionsDialog::accept()
{
@@ -584,13 +580,9 @@ QWidget* FileOptionsDialog::getOptionsWidget() const
/**
* Constructs an empty file icon provider called \a name, with the parent \a parent.
*/
FileIconProvider::FileIconProvider()
{
}
FileIconProvider::FileIconProvider() = default;
FileIconProvider::~FileIconProvider()
{
}
FileIconProvider::~FileIconProvider() = default;
QIcon FileIconProvider::icon(IconType type) const
{
@@ -691,9 +683,7 @@ FileChooser::FileChooser ( QWidget * parent )
setFocusProxy(lineEdit);
}
FileChooser::~FileChooser()
{
}
FileChooser::~FileChooser() = default;
void FileChooser::resizeEvent(QResizeEvent* e)
{
@@ -916,9 +906,7 @@ SelectModule::SelectModule (const QString& type, const SelectModule::Dict& types
#endif
}
SelectModule::~SelectModule()
{
}
SelectModule::~SelectModule() = default;
void SelectModule::accept()
{
+1 -3
View File
@@ -49,9 +49,7 @@ Flag::Flag(QWidget* parent)
setAutoFillBackground(true);
}
Flag::~Flag()
{
}
Flag::~Flag() = default;
void Flag::initializeGL()
{
+2 -6
View File
@@ -234,9 +234,7 @@ Rubberband::Rubberband() : viewer(nullptr)
rgb_a = 1.0f;
}
Rubberband::~Rubberband()
{
}
Rubberband::~Rubberband() = default;
void Rubberband::setWorking(bool on)
{
@@ -340,9 +338,7 @@ Polyline::Polyline() : viewer(nullptr)
rgb_a = 1.0f;
}
Polyline::~Polyline()
{
}
Polyline::~Polyline() = default;
void Polyline::setWorking(bool on)
{
+2 -6
View File
@@ -88,12 +88,8 @@ class GuiExport GLGraphicsItem : public Base::BaseClass
TYPESYSTEM_HEADER_WITH_OVERRIDE();
public:
GLGraphicsItem()
{
}
~GLGraphicsItem() override
{
}
GLGraphicsItem() = default;
~GLGraphicsItem() override = default;
virtual void paintGL() = 0;
};
+8 -11
View File
@@ -94,7 +94,7 @@ class NS::Event : public sc::event<NS::Event>
{
public:
Event():inventor_event(nullptr), modifiers{}, flags(new Flags){}
virtual ~Event(){}
virtual ~Event() = default;
void log() const {
if (isPress(1))
@@ -245,7 +245,7 @@ public:
if (ns.logging)
Base::Console().Log(" -> IdleState\n");
}
virtual ~IdleState(){}
virtual ~IdleState() = default;
sc::result react(const NS::Event& ev){
auto &ns = this->outermost_context().ns;
@@ -494,7 +494,7 @@ public:
if (ns.logging)
Base::Console().Log(" -> RotateState\n");
}
virtual ~RotateState(){}
virtual ~RotateState() = default;
sc::result react(const NS::Event& ev){
if(ev.isMouseButtonEvent()){
@@ -539,7 +539,7 @@ public:
this->ratio = ns.viewer->getSoRenderManager()->getViewportRegion().getViewportAspectRatio();
ns.pan(ns.viewer->getSoRenderManager()->getCamera());//set up panningplane
}
virtual ~PanState(){}
virtual ~PanState() = default;
sc::result react(const NS::Event& ev){
if(ev.isMouseButtonEvent()){
@@ -631,7 +631,7 @@ public:
Base::Console().Log(" -> TiltState\n");
ns.pan(ns.viewer->getSoRenderManager()->getCamera());//set up panningplane
}
virtual ~TiltState(){}
virtual ~TiltState() = default;
sc::result react(const NS::Event& ev){
if(ev.isMouseButtonEvent()){
@@ -759,7 +759,7 @@ public:
if (ns.logging)
Base::Console().Log(" -> AwaitingReleaseState\n");
}
virtual ~AwaitingReleaseState(){}
virtual ~AwaitingReleaseState() = default;
sc::result react(const NS::Event& ev){
auto &ns = this->outermost_context().ns;
@@ -810,7 +810,7 @@ public:
if (ns.logging)
Base::Console().Log(" -> InteractState\n");
}
virtual ~InteractState(){}
virtual ~InteractState() = default;
sc::result react(const NS::Event& ev){
if(ev.isMouseButtonEvent()){
@@ -842,10 +842,7 @@ GestureNavigationStyle::GestureNavigationStyle()
}
GestureNavigationStyle::~GestureNavigationStyle()
{
}
GestureNavigationStyle::~GestureNavigationStyle() = default;
const char* GestureNavigationStyle::mouseButtons(ViewerMode mode)
{
+2 -6
View File
@@ -66,9 +66,7 @@ GUIApplication::GUIApplication(int & argc, char ** argv)
#endif
}
GUIApplication::~GUIApplication()
{
}
GUIApplication::~GUIApplication() = default;
bool GUIApplication::notify (QObject * receiver, QEvent * event)
{
@@ -234,9 +232,7 @@ GUISingleApplication::GUISingleApplication(int & argc, char ** argv)
connect(d_ptr->timer, &QTimer::timeout, this, &GUISingleApplication::processMessages);
}
GUISingleApplication::~GUISingleApplication()
{
}
GUISingleApplication::~GUISingleApplication() = default;
bool GUISingleApplication::isRunning() const
{
+1 -3
View File
@@ -54,9 +54,7 @@ Gui::GUIApplicationNativeEventAware::GUIApplicationNativeEventAware(int &argc, c
#endif
}
Gui::GUIApplicationNativeEventAware::~GUIApplicationNativeEventAware()
{
}
Gui::GUIApplicationNativeEventAware::~GUIApplicationNativeEventAware() = default;
void Gui::GUIApplicationNativeEventAware::initSpaceball(QMainWindow *window)
{
+2 -2
View File
@@ -119,8 +119,8 @@ void GUIConsole::SendLog(const std::string& notifiername, const std::string& msg
#else /* FC_OS_LINUX */
// safely ignore GUIConsole::s_nMaxLines and GUIConsole::s_nRefCount
GUIConsole::GUIConsole () {}
GUIConsole::~GUIConsole () {}
GUIConsole::GUIConsole () = default;
GUIConsole::~GUIConsole () = default;
void GUIConsole::SendLog(const std::string& notifiername, const std::string& msg, Base::LogStyle level,
Base::IntendedRecipient recipient, Base::ContentType content)
{
+2 -6
View File
@@ -103,9 +103,7 @@ InputField::InputField(QWidget * parent)
connect(this, &QLineEdit::textChanged, this, &InputField::newInput);
}
InputField::~InputField()
{
}
InputField::~InputField() = default;
void InputField::bind(const App::ObjectIdentifier &_path)
{
@@ -765,9 +763,7 @@ InputValidator::InputValidator(InputField* parent) : QValidator(parent), dptr(pa
{
}
InputValidator::~InputValidator()
{
}
InputValidator::~InputValidator() = default;
void InputValidator::fixup(QString& input) const
{
+3 -10
View File
@@ -79,9 +79,7 @@ LocationWidget::LocationWidget (QWidget * parent)
retranslateUi();
}
LocationWidget::~LocationWidget()
{
}
LocationWidget::~LocationWidget() = default;
QSize LocationWidget::sizeHint() const
{
@@ -227,9 +225,7 @@ LocationDialog::LocationDialog(QWidget* parent, Qt::WindowFlags fl)
{
}
LocationDialog::~LocationDialog()
{
}
LocationDialog::~LocationDialog() = default;
Base::Vector3d LocationDialog::getUserDirection(bool* ok) const
{
@@ -260,10 +256,7 @@ void LocationDialog::onDirectionActivated(int index)
// -----------------------------------------------------------
LocationDialogUiImp::~LocationDialogUiImp()
{
// no need to delete child widgets, Qt does it all for us
}
LocationDialogUiImp::~LocationDialogUiImp() = default;
Base::Vector3d LocationDialogUiImp::getDirection() const
{
+4 -11
View File
@@ -118,7 +118,7 @@ public:
this->setupUi(this);
this->retranslate();
}
~LocationDialogUi() override{}
~LocationDialogUi() override = default;
void retranslate()
{
@@ -247,9 +247,7 @@ public:
this->setupUi(dlg);
this->retranslate(dlg);
}
~LocationUi()
{
}
~LocationUi() = default;
void retranslate(QDialog *dlg)
{
@@ -367,10 +365,7 @@ public:
: LocationDialog(parent, fl), ui(this)
{
}
~LocationDialogImp() override
{
// no need to delete child widgets, Qt does it all for us
}
~LocationDialogImp() override = default;
Base::Vector3d getDirection() const override
{
@@ -428,9 +423,7 @@ public:
LocationImpUi(Ui* ui) : ui(ui)
{
}
~LocationImpUi() override
{
}
~LocationImpUi() override = default;
boost::any get() override
{
+1 -3
View File
@@ -113,9 +113,7 @@ SmSwitchboard::SmSwitchboard(int numchildren)
/*!
Destructor.
*/
SmSwitchboard::~SmSwitchboard() // virtual, protected
{
}
SmSwitchboard::~SmSwitchboard() = default;// virtual, protected
// Documented in superclass.
void
+1 -1
View File
@@ -42,7 +42,7 @@ public:
SoSFFloat scaleFactor;
protected:
~SoAutoZoomTranslation() override {}
~SoAutoZoomTranslation() override = default;
void doAction(SoAction * action) override;
void getPrimitiveCount(SoGetPrimitiveCountAction * action) override;
void getMatrix(SoGetMatrixAction * action) override;
+1 -1
View File
@@ -48,7 +48,7 @@ public:
private:
void renderGrid(SoGLRenderAction *action);
// Force using the reference count mechanism.
~SoDrawingGrid() override {}
~SoDrawingGrid() override = default;
};
} // namespace Inventor
+2 -6
View File
@@ -40,13 +40,9 @@ using namespace Gui;
TYPESYSTEM_SOURCE(Gui::InventorNavigationStyle, Gui::UserNavigationStyle)
InventorNavigationStyle::InventorNavigationStyle()
{
}
InventorNavigationStyle::InventorNavigationStyle() = default;
InventorNavigationStyle::~InventorNavigationStyle()
{
}
InventorNavigationStyle::~InventorNavigationStyle() = default;
const char* InventorNavigationStyle::mouseButtons(ViewerMode mode)
{
+1 -3
View File
@@ -35,9 +35,7 @@ ListWidgetDragBugFix::ListWidgetDragBugFix(QWidget * parent)
{
}
ListWidgetDragBugFix::~ListWidgetDragBugFix()
{
}
ListWidgetDragBugFix::~ListWidgetDragBugFix() = default;
void ListWidgetDragBugFix::dragMoveEvent(QDragMoveEvent *event)
{
+1 -2
View File
@@ -136,8 +136,7 @@ public:
CustomMessageEvent(int t, const QString& s, int timeout=0)
: QEvent(QEvent::User), _type(t), msg(s), _timeout(timeout)
{ }
~CustomMessageEvent() override
{ }
~CustomMessageEvent() override = default;
int type() const
{ return _type; }
const QString& message() const
+1 -2
View File
@@ -58,8 +58,7 @@ public:
explicit UrlHandler(QObject* parent = nullptr)
: QObject(parent){
}
~UrlHandler() override {
}
~UrlHandler() override = default;
virtual void openUrl(App::Document*, const QUrl&) {
}
};
+9 -27
View File
@@ -64,13 +64,9 @@
using namespace Gui;
namespace sp = std::placeholders;
AlignmentGroup::AlignmentGroup()
{
}
AlignmentGroup::AlignmentGroup() = default;
AlignmentGroup::~AlignmentGroup()
{
}
AlignmentGroup::~AlignmentGroup() = default;
void AlignmentGroup::addView(App::DocumentObject* pView)
{
@@ -254,33 +250,21 @@ Base::BoundBox3d AlignmentGroup::getBoundingBox() const
// ------------------------------------------------------------------
MovableGroup::MovableGroup()
{
}
MovableGroup::MovableGroup() = default;
MovableGroup::~MovableGroup()
{
}
MovableGroup::~MovableGroup() = default;
// ------------------------------------------------------------------
FixedGroup::FixedGroup()
{
}
FixedGroup::FixedGroup() = default;
FixedGroup::~FixedGroup()
{
}
FixedGroup::~FixedGroup() = default;
// ------------------------------------------------------------------
MovableGroupModel::MovableGroupModel()
{
}
MovableGroupModel::MovableGroupModel() = default;
MovableGroupModel::~MovableGroupModel()
{
}
MovableGroupModel::~MovableGroupModel() = default;
void MovableGroupModel::addGroup(const MovableGroup& grp)
{
@@ -426,9 +410,7 @@ public:
static_cast<SoGroup*>(getViewer(1)->getSoRenderManager()->getSceneGraph())->
addChild(setupHeadUpDisplay(tr("Fixed object")));
}
~AlignmentView() override
{
}
~AlignmentView() override = default;
PyObject* getPyObject() override
{
Py_Return;
+1 -1
View File
@@ -42,7 +42,7 @@ class View3DInventorViewer;
class PickedPoint {
public:
PickedPoint() {}
PickedPoint() = default;
PickedPoint(const Base::Vector3d& p, const Base::Vector3d& n) : point(p), normal(n) {}
Base::Vector3d point;
Base::Vector3d normal;
+1 -3
View File
@@ -85,9 +85,7 @@ MayaGestureNavigationStyle::MayaGestureNavigationStyle()
inGesture = false;
}
MayaGestureNavigationStyle::~MayaGestureNavigationStyle()
{
}
MayaGestureNavigationStyle::~MayaGestureNavigationStyle() = default;
const char* MayaGestureNavigationStyle::mouseButtons(ViewerMode mode)
{
+3 -9
View File
@@ -37,9 +37,7 @@
using namespace Gui;
MenuItem::MenuItem()
{
}
MenuItem::MenuItem() = default;
MenuItem::MenuItem(MenuItem* item)
{
@@ -197,13 +195,9 @@ void MenuManager::destruct()
_instance = nullptr;
}
MenuManager::MenuManager()
{
}
MenuManager::MenuManager() = default;
MenuManager::~MenuManager()
{
}
MenuManager::~MenuManager() = default;
void MenuManager::setup(MenuItem* menuItems) const
{
+8 -25
View File
@@ -204,9 +204,7 @@ void PolyPickerSelection::draw()
_pcView3D->redraw();
}
PolyPickerSelection::~PolyPickerSelection()
{
}
PolyPickerSelection::~PolyPickerSelection() = default;
int PolyPickerSelection::popupMenu()
{
@@ -357,9 +355,7 @@ PolyClipSelection::PolyClipSelection()
selectionBits.set(2);
}
PolyClipSelection::~PolyClipSelection()
{
}
PolyClipSelection::~PolyClipSelection() = default;
int PolyClipSelection::popupMenu()
{
@@ -404,14 +400,9 @@ int PolyClipSelection::popupMenu()
// -----------------------------------------------------------------------------------
FreehandSelection::FreehandSelection()
{
}
FreehandSelection::FreehandSelection() = default;
FreehandSelection::~FreehandSelection()
{
}
FreehandSelection::~FreehandSelection() = default;
void FreehandSelection::setClosed(bool on)
{
@@ -565,9 +556,7 @@ RubberbandSelection::RubberbandSelection()
rubberband.setColor(1.0, 1.0, 0.0, 0.5);
}
RubberbandSelection::~RubberbandSelection()
{
}
RubberbandSelection::~RubberbandSelection() = default;
void RubberbandSelection::setColor(float r, float g, float b, float a)
{
@@ -665,19 +654,13 @@ RectangleSelection::RectangleSelection() : RubberbandSelection()
rubberband.setColor(0.0,0.0,1.0,1.0);
}
RectangleSelection::~RectangleSelection()
{
}
RectangleSelection::~RectangleSelection() = default;
// -----------------------------------------------------------------------------------
BoxZoomSelection::BoxZoomSelection()
{
}
BoxZoomSelection::BoxZoomSelection() = default;
BoxZoomSelection::~BoxZoomSelection()
{
}
BoxZoomSelection::~BoxZoomSelection() = default;
void BoxZoomSelection::terminate(bool abort)
{
+3 -2
View File
@@ -36,6 +36,7 @@ class QWheelEvent;
class QKeyEvent;
class QPaintEvent;
class QResizeEvent;
class SbVec2s;
class SoEvent;
class SbViewportRegion;
class SoMouseButtonEvent;
@@ -58,7 +59,7 @@ public:
enum { Continue=0, Restart=1, Finish=2, Cancel=3, Ignore=4 };
AbstractMouseSelection();
virtual ~AbstractMouseSelection() {}
virtual ~AbstractMouseSelection() = default;
/// implement this in derived classes
virtual void initialize() = 0;
/// implement this in derived classes
@@ -112,7 +113,7 @@ class GuiExport BaseMouseSelection : public AbstractMouseSelection
{
public:
BaseMouseSelection();
~BaseMouseSelection() override{}
~BaseMouseSelection() override = default;
};
// -----------------------------------------------------------------------------------
+1 -3
View File
@@ -177,9 +177,7 @@ NavigationStyleEvent::NavigationStyleEvent(const Base::Type& s)
{
}
NavigationStyleEvent::~NavigationStyleEvent()
{
}
NavigationStyleEvent::~NavigationStyleEvent() = default;
const Base::Type& NavigationStyleEvent::style() const
{
+2 -2
View File
@@ -283,8 +283,8 @@ class GuiExport UserNavigationStyle : public NavigationStyle {
TYPESYSTEM_HEADER_WITH_OVERRIDE();
public:
UserNavigationStyle(){}
~UserNavigationStyle() override{}
UserNavigationStyle() = default;
~UserNavigationStyle() override = default;
virtual const char* mouseButtons(ViewerMode) = 0;
virtual std::string userFriendlyName() const;
static std::map<Base::Type, std::string> getUserFriendlyNames();
+2 -6
View File
@@ -65,13 +65,9 @@ static const unsigned char navicon_data[] = {
0x9c,0x3d,0x00,0x00,0x9f,0xfd,0x00,0x00,0x80,0xfd,0x00,0x00,0xff,0x7d,
0x00,0x00,0xfe,0x01,0x00,0x00,0xff,0x7f,0x00,0x00};
PythonOnlineHelp::PythonOnlineHelp()
{
}
PythonOnlineHelp::PythonOnlineHelp() = default;
PythonOnlineHelp::~PythonOnlineHelp()
{
}
PythonOnlineHelp::~PythonOnlineHelp() = default;
QByteArray PythonOnlineHelp::loadResource(const QString& filename) const
{
+2 -6
View File
@@ -38,13 +38,9 @@ using namespace Gui;
TYPESYSTEM_SOURCE(Gui::OpenCascadeNavigationStyle, Gui::UserNavigationStyle)
OpenCascadeNavigationStyle::OpenCascadeNavigationStyle()
{
}
OpenCascadeNavigationStyle::OpenCascadeNavigationStyle() = default;
OpenCascadeNavigationStyle::~OpenCascadeNavigationStyle()
{
}
OpenCascadeNavigationStyle::~OpenCascadeNavigationStyle() = default;
const char* OpenCascadeNavigationStyle::mouseButtons(ViewerMode mode)
{
+2 -6
View File
@@ -38,13 +38,9 @@ using namespace Gui;
TYPESYSTEM_SOURCE(Gui::OpenSCADNavigationStyle, Gui::UserNavigationStyle)
OpenSCADNavigationStyle::OpenSCADNavigationStyle()
{
}
OpenSCADNavigationStyle::OpenSCADNavigationStyle() = default;
OpenSCADNavigationStyle::~OpenSCADNavigationStyle()
{
}
OpenSCADNavigationStyle::~OpenSCADNavigationStyle() = default;
const char* OpenSCADNavigationStyle::mouseButtons(ViewerMode mode)
{
+2 -7
View File
@@ -990,9 +990,7 @@ DockablePlacement::DockablePlacement(QWidget* parent, Qt::WindowFlags fl) : Plac
dw->show();
}
DockablePlacement::~DockablePlacement()
{
}
DockablePlacement::~DockablePlacement() = default;
void DockablePlacement::accept()
{
@@ -1026,10 +1024,7 @@ TaskPlacement::TaskPlacement()
connect(widget, &Placement::placementChanged, this, &TaskPlacement::slotPlacementChanged);
}
TaskPlacement::~TaskPlacement()
{
// automatically deleted in the sub-class
}
TaskPlacement::~TaskPlacement() = default;
/*!
+13 -39
View File
@@ -171,9 +171,7 @@ PrefSpinBox::PrefSpinBox ( QWidget * parent )
{
}
PrefSpinBox::~PrefSpinBox()
{
}
PrefSpinBox::~PrefSpinBox() = default;
void PrefSpinBox::restorePreferences()
{
@@ -205,9 +203,7 @@ PrefDoubleSpinBox::PrefDoubleSpinBox ( QWidget * parent )
{
}
PrefDoubleSpinBox::~PrefDoubleSpinBox()
{
}
PrefDoubleSpinBox::~PrefDoubleSpinBox() = default;
void PrefDoubleSpinBox::restorePreferences()
{
@@ -239,9 +235,7 @@ PrefLineEdit::PrefLineEdit ( QWidget * parent )
{
}
PrefLineEdit::~PrefLineEdit()
{
}
PrefLineEdit::~PrefLineEdit() = default;
void PrefLineEdit::restorePreferences()
{
@@ -274,9 +268,7 @@ PrefTextEdit::PrefTextEdit(QWidget* parent)
{
}
PrefTextEdit::~PrefTextEdit()
{
}
PrefTextEdit::~PrefTextEdit() = default;
void PrefTextEdit::restorePreferences()
{
@@ -310,9 +302,7 @@ PrefFileChooser::PrefFileChooser ( QWidget * parent )
{
}
PrefFileChooser::~PrefFileChooser()
{
}
PrefFileChooser::~PrefFileChooser() = default;
void PrefFileChooser::restorePreferences()
{
@@ -344,9 +334,7 @@ PrefComboBox::PrefComboBox ( QWidget * parent )
{
}
PrefComboBox::~PrefComboBox()
{
}
PrefComboBox::~PrefComboBox() = default;
QMetaType::Type PrefComboBox::getParamType() const
{
@@ -439,9 +427,7 @@ PrefCheckBox::PrefCheckBox ( QWidget * parent )
{
}
PrefCheckBox::~PrefCheckBox()
{
}
PrefCheckBox::~PrefCheckBox() = default;
void PrefCheckBox::restorePreferences()
{
@@ -473,9 +459,7 @@ PrefRadioButton::PrefRadioButton ( QWidget * parent )
{
}
PrefRadioButton::~PrefRadioButton()
{
}
PrefRadioButton::~PrefRadioButton() = default;
void PrefRadioButton::restorePreferences()
{
@@ -507,9 +491,7 @@ PrefSlider::PrefSlider ( QWidget * parent )
{
}
PrefSlider::~PrefSlider()
{
}
PrefSlider::~PrefSlider() = default;
void PrefSlider::restorePreferences()
{
@@ -541,9 +523,7 @@ PrefColorButton::PrefColorButton ( QWidget * parent )
{
}
PrefColorButton::~PrefColorButton()
{
}
PrefColorButton::~PrefColorButton() = default;
void PrefColorButton::restorePreferences()
{
@@ -588,9 +568,7 @@ PrefUnitSpinBox::PrefUnitSpinBox ( QWidget * parent )
{
}
PrefUnitSpinBox::~PrefUnitSpinBox()
{
}
PrefUnitSpinBox::~PrefUnitSpinBox() = default;
void PrefUnitSpinBox::restorePreferences()
{
@@ -686,9 +664,7 @@ PrefQuantitySpinBox::PrefQuantitySpinBox (QWidget * parent)
{
}
PrefQuantitySpinBox::~PrefQuantitySpinBox()
{
}
PrefQuantitySpinBox::~PrefQuantitySpinBox() = default;
void PrefQuantitySpinBox::contextMenuEvent(QContextMenuEvent *event)
{
@@ -810,9 +786,7 @@ PrefFontBox::PrefFontBox ( QWidget * parent )
{
}
PrefFontBox::~PrefFontBox()
{
}
PrefFontBox::~PrefFontBox() = default;
void PrefFontBox::restorePreferences()
{
@@ -56,10 +56,7 @@ DlgSettings3DViewImp::DlgSettings3DViewImp(QWidget* parent)
/**
* Destroys the object and frees any allocated resources
*/
DlgSettings3DViewImp::~DlgSettings3DViewImp()
{
// no need to delete child widgets, Qt does it all for us
}
DlgSettings3DViewImp::~DlgSettings3DViewImp() = default;
void DlgSettings3DViewImp::saveSettings()
{
@@ -74,9 +74,7 @@ DlgSettingsCacheDirectory::DlgSettingsCacheDirectory(QWidget* parent)
connect(ui->openButton, &QPushButton::clicked, this, &DlgSettingsCacheDirectory::openDirectory);
}
DlgSettingsCacheDirectory::~DlgSettingsCacheDirectory()
{
}
DlgSettingsCacheDirectory::~DlgSettingsCacheDirectory() = default;
void DlgSettingsCacheDirectory::saveSettings()
{
@@ -64,11 +64,7 @@ DlgSettingsDocumentImp::DlgSettingsDocumentImp( QWidget* parent )
/**
* Destroys the object and frees any allocated resources
*/
DlgSettingsDocumentImp::~DlgSettingsDocumentImp()
{
// no need to delete child widgets, Qt does it all for us
}
DlgSettingsDocumentImp::~DlgSettingsDocumentImp() = default;
void DlgSettingsDocumentImp::saveSettings()
{
@@ -111,9 +111,7 @@ DlgSettingsGeneral::DlgSettingsGeneral( QWidget* parent )
/**
* Destroys the object and frees any allocated resources
*/
DlgSettingsGeneral::~DlgSettingsGeneral()
{
}
DlgSettingsGeneral::~DlgSettingsGeneral() = default;
/** Sets the size of the recent file list from the user parameters.
* @see RecentFilesAction
@@ -56,10 +56,8 @@ DlgSettingsMacroImp::DlgSettingsMacroImp( QWidget* parent )
/**
* Destroys the object and frees any allocated resources
*/
DlgSettingsMacroImp::~DlgSettingsMacroImp()
{
// no need to delete child widgets, Qt does it all for us
}
DlgSettingsMacroImp::~DlgSettingsMacroImp() = default;
/** Sets the size of the recent macros list from the user parameters.
* @see RecentMacrosAction
* @see StdCmdRecentMacros
@@ -64,9 +64,7 @@ DlgSettingsNavigation::DlgSettingsNavigation(QWidget* parent)
/**
* Destroys the object and frees any allocated resources
*/
DlgSettingsNavigation::~DlgSettingsNavigation()
{
}
DlgSettingsNavigation::~DlgSettingsNavigation() = default;
void DlgSettingsNavigation::saveSettings()
{
@@ -342,9 +340,7 @@ CameraDialog::CameraDialog(QWidget* parent)
&CameraDialog::onCurrentViewClicked);
}
CameraDialog::~CameraDialog()
{
}
CameraDialog::~CameraDialog() = default;
void CameraDialog::setValues(double q0, double q1, double q2, double q3)
{
@@ -51,8 +51,7 @@ DlgSettingsNotificationArea::DlgSettingsNotificationArea(QWidget* parent)
});
}
DlgSettingsNotificationArea::~DlgSettingsNotificationArea()
{}
DlgSettingsNotificationArea::~DlgSettingsNotificationArea() = default;
void DlgSettingsNotificationArea::saveSettings()
{
@@ -37,9 +37,7 @@ DlgSettingsPythonConsole::DlgSettingsPythonConsole(QWidget* parent)
ui->setupUi(this);
}
DlgSettingsPythonConsole::~DlgSettingsPythonConsole()
{
}
DlgSettingsPythonConsole::~DlgSettingsPythonConsole() = default;
void DlgSettingsPythonConsole::saveSettings()
{
@@ -48,9 +48,7 @@ DlgSettingsReportView::DlgSettingsReportView( QWidget* parent )
/**
* Destroys the object and frees any allocated resources
*/
DlgSettingsReportView::~DlgSettingsReportView()
{
}
DlgSettingsReportView::~DlgSettingsReportView() = default;
void DlgSettingsReportView::saveSettings()
{
@@ -39,9 +39,7 @@ DlgSettingsSelection::DlgSettingsSelection(QWidget* parent)
ui->setupUi(this);
}
DlgSettingsSelection::~DlgSettingsSelection()
{
}
DlgSettingsSelection::~DlgSettingsSelection() = default;
void DlgSettingsSelection::saveSettings()
{
+1 -4
View File
@@ -55,10 +55,7 @@ DlgSettingsTheme::DlgSettingsTheme(QWidget* parent)
/**
* Destroys the object and frees any allocated resources
*/
DlgSettingsTheme::~DlgSettingsTheme()
{
// no need to delete child widgets, Qt does it all for us
}
DlgSettingsTheme::~DlgSettingsTheme() = default;
void DlgSettingsTheme::saveSettings()
{
@@ -61,10 +61,7 @@ DlgSettingsViewColor::DlgSettingsViewColor(QWidget* parent)
/**
* Destroys the object and frees any allocated resources
*/
DlgSettingsViewColor::~DlgSettingsViewColor()
{
// no need to delete child widgets, Qt does it all for us
}
DlgSettingsViewColor::~DlgSettingsViewColor() = default;
void DlgSettingsViewColor::saveSettings()
{
@@ -163,9 +163,7 @@ wbListItem::wbListItem(const QString& wbName, bool enabled, bool startupWb, bool
layout->setContentsMargins(10, 0, 0, 0);
}
wbListItem::~wbListItem()
{
}
wbListItem::~wbListItem() = default;
bool wbListItem::isEnabled()
{
@@ -245,10 +243,7 @@ DlgSettingsWorkbenchesImp::DlgSettingsWorkbenchesImp( QWidget* parent )
/**
* Destroys the object and frees any allocated resources
*/
DlgSettingsWorkbenchesImp::~DlgSettingsWorkbenchesImp()
{
}
DlgSettingsWorkbenchesImp::~DlgSettingsWorkbenchesImp() = default;
void DlgSettingsWorkbenchesImp::saveSettings()
{
+1 -3
View File
@@ -303,9 +303,7 @@ ProgressDialog::ProgressDialog (SequencerDialog* s, QWidget * parent)
connect(this, &QProgressDialog::canceled, this, &ProgressDialog::onCancel);
}
ProgressDialog::~ProgressDialog ()
{
}
ProgressDialog::~ProgressDialog() = default;
void ProgressDialog::onCancel()
{
+1 -3
View File
@@ -38,8 +38,6 @@ ProjectWidget::ProjectWidget(QWidget* parent)
setModel(fileModel);
}
ProjectWidget::~ProjectWidget()
{
}
ProjectWidget::~ProjectWidget() = default;
#include "moc_ProjectView.cpp"
+2 -6
View File
@@ -144,9 +144,7 @@ PreferenceUiForm::PreferenceUiForm(const QString& fn, QWidget* parent)
}
}
PreferenceUiForm::~PreferenceUiForm()
{
}
PreferenceUiForm::~PreferenceUiForm() = default;
void PreferenceUiForm::changeEvent(QEvent *e)
{
@@ -219,9 +217,7 @@ CustomizeActionPage::CustomizeActionPage(QWidget* parent) : QWidget(parent)
}
/** Destruction */
CustomizeActionPage::~CustomizeActionPage()
{
}
CustomizeActionPage::~CustomizeActionPage() = default;
bool CustomizeActionPage::event(QEvent* e)
{
+1 -3
View File
@@ -568,8 +568,6 @@ PropertyDockView::PropertyDockView(Gui::Document* pcDocument, QWidget *parent)
resize( 200, 400 );
}
PropertyDockView::~PropertyDockView()
{
}
PropertyDockView::~PropertyDockView() = default;
#include "moc_PropertyView.cpp"
+2 -6
View File
@@ -1514,9 +1514,7 @@ PythonConsoleHighlighter::PythonConsoleHighlighter(QObject* parent)
{
}
PythonConsoleHighlighter::~PythonConsoleHighlighter()
{
}
PythonConsoleHighlighter::~PythonConsoleHighlighter() = default;
void PythonConsoleHighlighter::highlightBlock(const QString& text)
{
@@ -1564,9 +1562,7 @@ ConsoleHistory::ConsoleHistory()
_it = _history.cend();
}
ConsoleHistory::~ConsoleHistory()
{
}
ConsoleHistory::~ConsoleHistory() = default;
void ConsoleHistory::first()
{
+7 -21
View File
@@ -44,9 +44,7 @@ PythonStdout::PythonStdout(PythonConsole *pc)
{
}
PythonStdout::~PythonStdout()
{
}
PythonStdout::~PythonStdout() = default;
Py::Object PythonStdout::getattr(const char *name)
{
@@ -110,9 +108,7 @@ PythonStderr::PythonStderr(PythonConsole *pc)
{
}
PythonStderr::~PythonStderr()
{
}
PythonStderr::~PythonStderr() = default;
Py::Object PythonStderr::getattr(const char *name)
{
@@ -171,13 +167,9 @@ void OutputStdout::init_type()
add_noargs_method("isatty",&OutputStdout::isatty,"isatty()");
}
OutputStdout::OutputStdout()
{
}
OutputStdout::OutputStdout() = default;
OutputStdout::~OutputStdout()
{
}
OutputStdout::~OutputStdout() = default;
Py::Object OutputStdout::getattr(const char *name)
{
@@ -236,13 +228,9 @@ void OutputStderr::init_type()
add_noargs_method("isatty",&OutputStderr::isatty,"isatty()");
}
OutputStderr::OutputStderr()
{
}
OutputStderr::OutputStderr() = default;
OutputStderr::~OutputStderr()
{
}
OutputStderr::~OutputStderr() = default;
Py::Object OutputStderr::getattr(const char *name)
{
@@ -305,9 +293,7 @@ PythonStdin::PythonStdin(PythonConsole *pc)
{
}
PythonStdin::~PythonStdin()
{
}
PythonStdin::~PythonStdin() = default;
Py::Object PythonStdin::repr()
{
+9 -26
View File
@@ -38,9 +38,7 @@
using namespace Gui;
Breakpoint::Breakpoint()
{
}
Breakpoint::Breakpoint() = default;
Breakpoint::Breakpoint(const Breakpoint& rBp)
{
@@ -60,10 +58,7 @@ Breakpoint& Breakpoint::operator= (const Breakpoint& rBp)
return *this;
}
Breakpoint::~Breakpoint()
{
}
Breakpoint::~Breakpoint() = default;
void Breakpoint::setFilename(const QString& fn)
{
@@ -166,13 +161,9 @@ void PythonDebugStdout::init_type()
add_varargs_method("flush",&PythonDebugStdout::flush,"flush the output");
}
PythonDebugStdout::PythonDebugStdout()
{
}
PythonDebugStdout::PythonDebugStdout() = default;
PythonDebugStdout::~PythonDebugStdout()
{
}
PythonDebugStdout::~PythonDebugStdout() = default;
Py::Object PythonDebugStdout::repr()
{
@@ -218,13 +209,9 @@ void PythonDebugStderr::init_type()
add_varargs_method("write",&PythonDebugStderr::write,"write to stderr");
}
PythonDebugStderr::PythonDebugStderr()
{
}
PythonDebugStderr::PythonDebugStderr() = default;
PythonDebugStderr::~PythonDebugStderr()
{
}
PythonDebugStderr::~PythonDebugStderr() = default;
Py::Object PythonDebugStderr::repr()
{
@@ -267,13 +254,9 @@ void PythonDebugExcept::init_type()
add_varargs_method("fc_excepthook",&PythonDebugExcept::excepthook,"Custom exception handler");
}
PythonDebugExcept::PythonDebugExcept()
{
}
PythonDebugExcept::PythonDebugExcept() = default;
PythonDebugExcept::~PythonDebugExcept()
{
}
PythonDebugExcept::~PythonDebugExcept() = default;
Py::Object PythonDebugExcept::repr()
{
@@ -321,7 +304,7 @@ class PythonDebuggerPy : public Py::PythonExtension<PythonDebuggerPy>
{
public:
explicit PythonDebuggerPy(PythonDebugger* d) : dbg(d), depth(0) { }
~PythonDebuggerPy() override {}
~PythonDebuggerPy() override = default;
PythonDebugger* dbg;
int depth;
};

Some files were not shown because too many files have changed in this diff Show More