mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0024252: GCC warnings on breakage of strict-aliasing rules
Fixed type casts in NCollection maps Avoid invalid type cast in handling of LDOM text object Use correct pointer type in callback function of Graphic3d_CGraduatedTrihedron class Format of printf() simplified in IntPatch_Point.cxx
This commit is contained in:
@@ -344,8 +344,7 @@ void XmlMNaming_NamedShapeDriver::ReadShapeSection
|
||||
aNode = anElement.getNextSibling())
|
||||
{
|
||||
if (aNode.getNodeType() == LDOM_Node::TEXT_NODE) {
|
||||
LDOM_Text aText = (LDOM_Text&) aNode;
|
||||
LDOMString aData = aText.getData();
|
||||
LDOMString aData = aNode.getNodeValue();
|
||||
#ifdef USE_STL_STREAM
|
||||
std::stringstream aStream (std::string(aData.GetString()));
|
||||
#else
|
||||
|
Reference in New Issue
Block a user