#include <TKey.h>
#include "AliQAHistNavigator.h"
+using std::endl;
+using std::cout;
+using std::string;
ClassImp(AliQAHistNavigator)
//_________________________________________________________________________
if (fPFile) fPFile->Close();
if (!(fPFile->Open(GetFileName(),"READ")))
{
- return kFALSE;
cout<<"There is no file: "<<GetFileName()<<endl;
+ return kFALSE;
}
return kTRUE;
}
char fullName[1000];
for (std::list<string>::iterator si=names.begin(); si!=names.end(); ++si)
{
- sprintf(fullName,"%s", si->c_str());
+ snprintf(fullName,sizeof(fullName),"%s", si->c_str());
AliQADirList* f = new AliQADirList();
f->SetName(fullName);
fPListOfFiles->GetDirs()->AddLast(f);