0025266: Debug statements in the source are getting flushed on to the console
[occt.git] / src / Units / Units_Measurement.cxx
index 03e2f0a..0a82c68 100644 (file)
@@ -60,7 +60,9 @@ Units_Measurement::Units_Measurement(const Standard_Real avalue,
   themeasurement=avalue;
   Units_UnitSentence unit(aunit);
   if(!unit.IsDone()) {
+#ifdef UNITS_DEB
     cout<<"can not create Units_Measurement - incorrect unit"<<endl;
+#endif
     myHasToken = Standard_False;
   }
   else {
@@ -96,9 +98,11 @@ void Units_Measurement::Convert(const Standard_CString aunit)
     themeasurement = oldtoken->Multiplied(themeasurement);
     themeasurement = newtoken->Divided(themeasurement);
   }
+#ifdef UNITS_DEB
   else {
     cout<<" The units don't have the same physical dimensions"<<endl;
   }
+#endif
 }