diff --git a/src/Gui/SoFCUnifiedSelection.cpp b/src/Gui/SoFCUnifiedSelection.cpp index a8fda6a694..86edb0a44b 100644 --- a/src/Gui/SoFCUnifiedSelection.cpp +++ b/src/Gui/SoFCUnifiedSelection.cpp @@ -129,6 +129,10 @@ SoFCUnifiedSelection::SoFCUnifiedSelection() : pcDocument(0) SO_NODE_DEFINE_ENUM_VALUE(HighlightModes, OFF); SO_NODE_SET_SF_ENUM_TYPE (highlightMode, HighlightModes); + // Documentation of SoFullPath: + // Since the SoFullPath is derived from SoPath and contains no private data, you can cast SoPath instances to the SoFullPath type. + // This will allow you to examine hidden children. Actually, you are not supposed to allocate instances of this class at all. + // It is only available as an "extended interface" into the superclass SoPath. detailPath = static_cast(new SoPath(20)); detailPath->ref(); diff --git a/src/Gui/WorkbenchFactory.h b/src/Gui/WorkbenchFactory.h index 3a8f885f94..e137a8e8bf 100644 --- a/src/Gui/WorkbenchFactory.h +++ b/src/Gui/WorkbenchFactory.h @@ -84,7 +84,7 @@ public: virtual void* Produce () const { - return (void*)(new CLASS); + return (new CLASS); } };