Salome HOME
Copyright update 2022
[modules/gui.git] / src / DDS / DDS_DicItem.cxx
index 1d40d4c574c2125822c53d7ab3740a70a046d1fe..b38bb1d4001d525b62ad545b41b8dc55848951ea 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2022  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -57,6 +57,7 @@ DDS_DicItem::DDS_DicItem()
   \brief Copy constructor (put in private section to prevent object copying).
 */
 DDS_DicItem::DDS_DicItem( const DDS_DicItem& )
+: Standard_Transient()
 {
 }
 
@@ -888,7 +889,7 @@ void DDS_DicItem::FillDataMap( TCollection_AsciiString theID, const LDOM_Element
       else if ( anUnitData.myUnits.ToCString()[0] ) // treat '%' as unit with scale 100
         anUnitData.myScale = 0.01;
     }
-          catch( Standard_Failure ) {
+    catch( Standard_Failure& ) {
       anUnitData.myUnits.Clear();
     }