1
0
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:
abv
2014-01-15 06:40:18 +04:00
committed by bugmaster
parent 504a896866
commit fd03ee4b3b
10 changed files with 49 additions and 113 deletions

View File

@@ -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