Gui: [skip ci] avoid using const reference as member for several action classes to avoid memory corruption
This commit is contained in:
@@ -25,9 +25,11 @@
|
||||
#define _SoFCSelectionAction_h
|
||||
|
||||
//#include <Inventor/SoAction.h>
|
||||
#include <Inventor/actions/SoGLRenderAction.h>
|
||||
#include <Inventor/actions/SoSubAction.h>
|
||||
#include <Inventor/events/SoSubEvent.h>
|
||||
#include <Inventor/actions/SoGLRenderAction.h>
|
||||
#include <Inventor/fields/SoSFColor.h>
|
||||
#include <Inventor/fields/SoSFString.h>
|
||||
#include <Inventor/SbColor.h>
|
||||
#include <vector>
|
||||
|
||||
@@ -101,7 +103,7 @@ public:
|
||||
SoFCEnableSelectionAction (const SbBool& sel);
|
||||
~SoFCEnableSelectionAction();
|
||||
|
||||
const SbBool& selection;
|
||||
SbBool selection;
|
||||
|
||||
static void initClass();
|
||||
static void finish(void);
|
||||
@@ -126,7 +128,7 @@ public:
|
||||
SoFCEnableHighlightAction (const SbBool& sel);
|
||||
~SoFCEnableHighlightAction();
|
||||
|
||||
const SbBool& highlight;
|
||||
SbBool highlight;
|
||||
|
||||
static void initClass();
|
||||
static void finish(void);
|
||||
@@ -151,7 +153,7 @@ public:
|
||||
SoFCSelectionColorAction (const SoSFColor& col);
|
||||
~SoFCSelectionColorAction();
|
||||
|
||||
const SoSFColor& selectionColor;
|
||||
SoSFColor selectionColor;
|
||||
|
||||
static void initClass();
|
||||
static void finish(void);
|
||||
@@ -176,7 +178,7 @@ public:
|
||||
SoFCHighlightColorAction (const SoSFColor& col);
|
||||
~SoFCHighlightColorAction();
|
||||
|
||||
const SoSFColor& highlightColor;
|
||||
SoSFColor highlightColor;
|
||||
|
||||
static void initClass();
|
||||
static void finish(void);
|
||||
@@ -201,7 +203,7 @@ public:
|
||||
SoFCDocumentAction (const SoSFString& docName);
|
||||
~SoFCDocumentAction();
|
||||
|
||||
const SoSFString& documentName;
|
||||
SoSFString documentName;
|
||||
|
||||
static void initClass();
|
||||
static void finish(void);
|
||||
|
||||
Reference in New Issue
Block a user