From: hristov Date: Fri, 12 Dec 2003 13:36:36 +0000 (+0000) Subject: Cleaning up warnings (Sun) X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=07c4aae479864822fd1355523ebfb306b8403ab6 Cleaning up warnings (Sun) --- diff --git a/STEER/AliConfig.cxx b/STEER/AliConfig.cxx index b69e05c77e7..5de18d35b5e 100644 --- a/STEER/AliConfig.cxx +++ b/STEER/AliConfig.cxx @@ -192,7 +192,7 @@ AliConfig::AliConfig(const char *name, const char *title): gROOT->GetListOfBrowsables()->Add(fTopFolder, name); //Constants folder - TFolder *fConstFolder = fTopFolder->AddFolder (fgkConstantsFolderName, "Constant parameters"); + fConstFolder = fTopFolder->AddFolder (fgkConstantsFolderName, "Constant parameters"); fConstFolder->AddFolder("DatabasePDG", "PDG database"); // Add the tasks to //Folders diff --git a/STEER/AliDebugVolume.cxx b/STEER/AliDebugVolume.cxx index a5ef846c7c2..62975276623 100644 --- a/STEER/AliDebugVolume.cxx +++ b/STEER/AliDebugVolume.cxx @@ -64,11 +64,11 @@ Bool_t AliDebugVolume::IsVEqual(const char* name, Int_t copy) const } //_______________________________________________________________________ -char* AliDebugVolume::Status() const +const char* AliDebugVolume::Status() const { // Returns the status of the particle with respect to // the current volume (Undefined, Entering, Exiting) - char* tmp; + const char* tmp; tmp = "Undefined"; if (fStatus == 1) tmp = "Entering"; if (fStatus == 2) tmp = "Exiting"; diff --git a/STEER/AliDebugVolume.h b/STEER/AliDebugVolume.h index b05e5453eac..22f0c90e9bc 100644 --- a/STEER/AliDebugVolume.h +++ b/STEER/AliDebugVolume.h @@ -19,7 +19,7 @@ public: Float_t X() const {return fX;} Float_t Y() const {return fY;} Float_t Z() const {return fZ;} - char* Status() const; + const char* Status() const; Bool_t IsVEqual(const char* name, Int_t copy) const; diff --git a/STEER/AliRun.cxx b/STEER/AliRun.cxx index 94dbd0ff07a..7efd9b61be2 100644 --- a/STEER/AliRun.cxx +++ b/STEER/AliRun.cxx @@ -276,7 +276,7 @@ void AliRun::SetField(AliMagF* magField) //_______________________________________________________________________ void AliRun::SetField(Int_t type, Int_t version, Float_t scale, - Float_t maxField, char* filename) + Float_t maxField, const char* filename) { // // Set magnetic field parameters diff --git a/STEER/AliRun.h b/STEER/AliRun.h index 5cbfea3f60f..4e0831558cc 100644 --- a/STEER/AliRun.h +++ b/STEER/AliRun.h @@ -89,7 +89,7 @@ public: virtual void RunReco(const char *detector=0, Int_t first = 0, Int_t last = 0); virtual void SetDebug(Int_t level=0) {fDebug = level;} virtual void SetDisplay(AliDisplay *display) {fDisplay = display;} - virtual void SetField(Int_t type=2, Int_t version=1, Float_t scale=1, Float_t maxField=10, char*filename="$(ALICE_ROOT)/data/field01.dat"); + virtual void SetField(Int_t type=2, Int_t version=1, Float_t scale=1, Float_t maxField=10, const char* filename="$(ALICE_ROOT)/data/field01.dat"); virtual void SetField(AliMagF* magField); virtual TDatabasePDG* PDGDB() const {return fPDGDB;}