Salome HOME
[Bug PAL7900] g++ 3.3 compatibility
authorapo <apo@opencascade.com>
Fri, 28 Jan 2005 12:51:37 +0000 (12:51 +0000)
committerapo <apo@opencascade.com>
Fri, 28 Jan 2005 12:51:37 +0000 (12:51 +0000)
  There are 3 other occurences of ::data_type in the same file.

src/SALOMEDS/SALOMEDS_SObject_i.cxx

index 1d95e8bd1d0eaaaf142a1feb2cab0ca83068c3e4..dc4426a71bc90032b81171cc2db9a6aac80f69ec 100644 (file)
@@ -223,7 +223,7 @@ namespace SALOMEDS{
   {
     TAttrID2FunMap::const_iterator anIter = __AttrID2FunMap__.find(theType);
     if(anIter != __AttrID2FunMap__.end()){
-      const TAttrID2FunMap::data_type& aValue = anIter->second;
+      const TAttrID2FunMap::mapped_type& aValue = anIter->second;
       return aValue.myGetGUID();
     }
     // create tree node GUID by name
@@ -575,7 +575,7 @@ SALOMEDS_SObject_i::_CreateGenAttribute(const Handle(TDF_Attribute)& theAttr,
   SALOMEDS_GenericAttribute_i* anAttr;
   TAttrID2FunMap::const_iterator anIter = __AttrID2FunMap__.find(theType);
   if(anIter != __AttrID2FunMap__.end()){
-    const TAttrID2FunMap::data_type& aValue = anIter->second;
+    const TAttrID2FunMap::mapped_type& aValue = anIter->second;
     
     if(aValue.myIsCheckLockedStudy())
       _study->CheckLocked();
@@ -664,7 +664,7 @@ Handle(TDF_Attribute)
   Handle(TDF_Attribute) anAttr;
   TAttrID2FunMap::const_iterator anIter = __AttrID2FunMap__.find(theType);
   if(anIter != __AttrID2FunMap__.end()){
-    const TAttrID2FunMap::data_type& aValue = anIter->second;
+    const TAttrID2FunMap::mapped_type& aValue = anIter->second;
     
     if(aValue.myIsCheckLockedStudy())
       _study->CheckLocked();