]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix for Mandriva2006
authorenk <enk@opencascade.com>
Thu, 8 Feb 2007 06:31:33 +0000 (06:31 +0000)
committerenk <enk@opencascade.com>
Thu, 8 Feb 2007 06:31:33 +0000 (06:31 +0000)
src/DDS/DDS_DicItem.cxx

index 02cdefb9371abffec57ce051ac95f8788ed9ddeb..48ce715a9c76315bb92f71f77f727bfa4fac6900 100644 (file)
@@ -719,8 +719,8 @@ void DDS_DicItem::FillDataMap( TCollection_AsciiString theID, const LDOM_Element
       TCollection_AsciiString name = elem.getAttribute( DDS_Dictionary::KeyWord( "OPTION_NAME" ) );
 
       TCollection_ExtendedString value;
-      const LDOM_Text& aText = (const LDOM_Text&)elem.getFirstChild();
-      LDOM_Text anOptTxt( aText );
+      const LDOM_Node aNode = elem.getFirstChild();
+      LDOM_Text anOptTxt( (const LDOM_Text&)(aNode) );
       if ( !anOptTxt.isNull() )
         value = anOptTxt.getData();