]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSQAIntCheckable.cxx
Write header correctly.
[u/mrichter/AliRoot.git] / PHOS / AliPHOSQAIntCheckable.cxx
index 1a250b16a49758fe34340582acf9b19fa1dafc35..2421fe608181f19ee6d1e000b369a0cf8f67cb69 100644 (file)
@@ -27,8 +27,6 @@
 
 // --- Standard library ---
 
-#include <iostream.h>
-
 // --- AliRoot header files ---
 
 #include "AliPHOSQAIntCheckable.h"
@@ -40,8 +38,7 @@ ClassImp(AliPHOSQAIntCheckable)
   AliPHOSQAIntCheckable::AliPHOSQAIntCheckable(const char * name) : AliPHOSQAVirtualCheckable(name) 
 {
   //ctor initial value is zero
-  fType = new char[1] ; 
-  strcpy(fType,"I") ; 
+  fType  = "I" ; 
   fValue = 0 ; 
 }
 
@@ -50,14 +47,13 @@ ClassImp(AliPHOSQAIntCheckable)
   AliPHOSQAIntCheckable::~AliPHOSQAIntCheckable()
 {
   // dtor
-  delete fType ; 
 }
 
 //____________________________________________________________________________ 
 void AliPHOSQAIntCheckable::Print() const 
 {
   // Print the chekable name and its value
-  cout << " Checkable-> " << GetName() << " : value = " << fValue << endl ; 
+  Info("Print", "Checkable-> %s : value = %d", GetName(), fValue) ; 
 }
 
 //____________________________________________________________________________