Salome HOME
#18963 Minimize compiler warnings
[modules/gui.git] / src / DDS / DDS_Dictionary.cxx
index 7ff1ee53c63046933ea8657b1e02deafc9c140fb..4cf9249647e654dc6e106767c7a82f6245f4decc 100644 (file)
@@ -267,6 +267,7 @@ DDS_Dictionary::DDS_Dictionary()
   \brief Copy constructor (put in private section to prevent object copying).
 */
 DDS_Dictionary::DDS_Dictionary( const DDS_Dictionary& )
+: Standard_Transient()
 {
 }
 
@@ -555,7 +556,7 @@ Standard_Real DDS_Dictionary::ToSI( const Standard_Real theValue, const Standard
       OCC_CATCH_SIGNALS;
       aRetValue = UnitsAPI::AnyToSI( theValue, theUnits );
     }
-    catch( Standard_Failure ) {
+    catch( Standard_Failure& ) {
     }
   }
   else if ( theUnits && *theUnits )
@@ -580,7 +581,7 @@ Standard_Real DDS_Dictionary::FromSI( const Standard_Real theValue, const Standa
       OCC_CATCH_SIGNALS;
       aRetValue = UnitsAPI::AnyFromSI( theValue, theUnits );
     }
-    catch( Standard_Failure ) {
+    catch( Standard_Failure& ) {
     }
   }
   else if ( theUnits && *theUnits )