]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSDetTypeSim.cxx
Correct character constantness
[u/mrichter/AliRoot.git] / ITS / AliITSDetTypeSim.cxx
index 911d6f5b15d69d552c9a23d98ee27750b41f7599..31427a19d04a7b79b9e2eb3bfdafdde5dec7b0e0 100644 (file)
@@ -669,7 +669,7 @@ void AliITSDetTypeSim::SetDefaultSimulation(){
   }
 }
 //___________________________________________________________________
-void AliITSDetTypeSim::SetTreeAddressS(TTree* treeS, Char_t* name){
+void AliITSDetTypeSim::SetTreeAddressS(TTree* treeS, const Char_t* name){
   // Set branch address for the ITS summable digits Trees.  
   char branchname[30];
 
@@ -684,7 +684,7 @@ void AliITSDetTypeSim::SetTreeAddressS(TTree* treeS, Char_t* name){
 
 }
 //___________________________________________________________________
-void AliITSDetTypeSim::SetTreeAddressD(TTree* treeD, Char_t* name){
+void AliITSDetTypeSim::SetTreeAddressD(TTree* treeD, const Char_t* name){
   // Set branch address for the digit Trees.
   
   const char *det[3] = {"SPD","SDD","SSD"};
@@ -699,7 +699,7 @@ void AliITSDetTypeSim::SetTreeAddressD(TTree* treeD, Char_t* name){
     fDigits = new TObjArray(fgkNdettypes); 
   }
   for(Int_t i=0;i<fgkNdettypes;i++){
-    Char_t* digclass = GetDigitClassName(i);
+    const Char_t* digclass = GetDigitClassName(i);
     if(digclass==0x0){
       if(i==0) SetDigitClassName(i,"AliITSdigitSPD");
       if(i==1) SetDigitClassName(i,"AliITSdigitSDD");