Gui: modernize C++: use default member init

This commit is contained in:
wmayer
2023-08-23 16:29:19 +02:00
committed by wwmayer
parent ee0fad4c90
commit 5a153e50ff
79 changed files with 220 additions and 325 deletions

View File

@@ -692,7 +692,7 @@ void SoFCDocumentObjectAction::finish()
atexit_cleanup();
}
SoFCDocumentObjectAction::SoFCDocumentObjectAction () : _handled(false)
SoFCDocumentObjectAction::SoFCDocumentObjectAction()
{
SO_ACTION_CONSTRUCTOR(SoFCDocumentObjectAction);
}
@@ -760,7 +760,7 @@ void SoGLSelectAction::initClass()
SoGLSelectAction::SoGLSelectAction (const SbViewportRegion& region,
const SbViewportRegion& select)
: vpregion(region), vpselect(select), _handled(false)
: vpregion(region), vpselect(select)
{
SO_ACTION_CONSTRUCTOR(SoGLSelectAction);
}
@@ -833,7 +833,7 @@ void SoVisibleFaceAction::initClass()
SO_ACTION_ADD_METHOD(SoFCSelection,callDoAction);
}
SoVisibleFaceAction::SoVisibleFaceAction () : _handled(false)
SoVisibleFaceAction::SoVisibleFaceAction ()
{
SO_ACTION_CONSTRUCTOR(SoVisibleFaceAction);
}
@@ -930,33 +930,21 @@ class SoBoxSelectionRenderActionP {
public:
SoBoxSelectionRenderActionP(SoBoxSelectionRenderAction * master)
: master(master)
, searchaction(nullptr)
, selectsearch(nullptr)
, camerasearch(nullptr)
, bboxaction(nullptr)
, basecolor(nullptr)
, postprocpath(nullptr)
, highlightPath(nullptr)
, localRoot(nullptr)
, xform(nullptr)
, cube(nullptr)
, drawstyle(nullptr)
{
}
SoBoxSelectionRenderAction * master;
SoSearchAction * searchaction;
SoSearchAction * selectsearch;
SoSearchAction * camerasearch;
SoGetBoundingBoxAction * bboxaction;
SoBaseColor * basecolor;
SoTempPath * postprocpath;
SoPath * highlightPath;
SoSeparator * localRoot;
SoMatrixTransform * xform;
SoCube * cube;
SoDrawStyle * drawstyle;
SoSearchAction * searchaction{nullptr};
SoSearchAction * selectsearch{nullptr};
SoSearchAction * camerasearch{nullptr};
SoGetBoundingBoxAction * bboxaction{nullptr};
SoBaseColor * basecolor{nullptr};
SoTempPath * postprocpath{nullptr};
SoPath * highlightPath{nullptr};
SoSeparator * localRoot{nullptr};
SoMatrixTransform * xform{nullptr};
SoCube * cube{nullptr};
SoDrawStyle * drawstyle{nullptr};
SoColorPacker colorpacker;
void initBoxGraph();