]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MONITOR/AliQAHistNavigator.cxx
Update from DptDpt Correlations task
[u/mrichter/AliRoot.git] / MONITOR / AliQAHistNavigator.cxx
index 06cc2ed0d42ac8cfb3898191b7d71ab78886f0fa..1a76a7cbbde06aa457912509da79cdf64d0f2073 100644 (file)
@@ -34,6 +34,9 @@
 #include <TKey.h>
 #include "AliQAHistNavigator.h"
 
+using std::endl;
+using std::cout;
+using std::string;
 ClassImp(AliQAHistNavigator)
 
 //_________________________________________________________________________
@@ -206,8 +209,8 @@ Bool_t AliQAHistNavigator::OpenCurrentFile()
     if (fPFile) fPFile->Close();
     if (!(fPFile->Open(GetFileName(),"READ")))
     {
-        return kFALSE;
         cout<<"There is no file: "<<GetFileName()<<endl;
+        return kFALSE;
     }
     return kTRUE;
 }
@@ -474,7 +477,7 @@ Bool_t AliQAHistNavigator::GetListOfFiles()
         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);