]> git.uio.no Git - u/mrichter/AliRoot.git/commit - MUON/MUONTriggerChamberEfficiency.C
In MUONTriggerChamberEfficiency.C:
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 27 Jul 2010 07:58:30 +0000 (07:58 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 27 Jul 2010 07:58:30 +0000 (07:58 +0000)
commitdb438806d50fe4c3e28a8279e91ecf760b75f12b
tree2d0fad2e23c7fed8186c674f7c4b2c1372290224
parent2e82ac1044fa9ed29732e197366da090b256d93d
In MUONTriggerChamberEfficiency.C:
Former const char * arguments are now TString objects. This is why it is very common to build a const char * using the Form() function, such as Form("local://%s/OCDB", gSystem->pwd()), but this function points to a static circular buffer, that may be eventually overwritten between the Form() call and the const char * usage, leading to unexpected results. By using TString, we make sure that the buffer is safely copied before being overwritten.
(Dario Berzano)
MUON/MUONTriggerChamberEfficiency.C