]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
AliLatexTable: fixing a few issues (was not compiling with some gcc versions)
authormfloris <mfloris@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 9 Jul 2010 08:45:59 +0000 (08:45 +0000)
committermfloris <mfloris@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 9 Jul 2010 08:45:59 +0000 (08:45 +0000)
PWG2/SPECTRA/Fit/AliLatexTable.cxx

index 771abfdd933937ec8d4460a1f8620199512912d0..294864072968d0e72c3507730f1d2e62aa635c8b 100644 (file)
@@ -34,7 +34,7 @@
 
 using namespace std;
 
-ClassImp(AliLatexTable);
+ClassImp(AliLatexTable)
 
 AliLatexTable::AliLatexTable(Int_t ncol, TString format) : fNcol(0), fFormat(""), fRows(0), fCols(0), fNcolReady(0){
   // constructor, specify number of cols 
@@ -440,7 +440,7 @@ void AliLatexTable::StripLatex(TString &text, TString format) {
     //    cout << "col " << text.Data() << endl;
     // in case of multicol span, replace first column with content and
     // add n empty cols
-    TObjArray * array = TPRegexp("multicolumn\{(.*)\\}\{.*\\}\{(.*)\\}").MatchS(text); // Added double \\ because gcc 4 triggers hard error on unknown escape sequence. Hope it still works...
+    TObjArray * array = TPRegexp("multicolumn\\{(.*)\\}\\{.*\\}\\{(.*)\\}").MatchS(text); // Added double \\ because gcc 4 triggers hard error on unknown escape sequence. Hope it still works...
     const TString content = ((TObjString *)array->At(2))->GetString();
     Int_t nspan   = ((TObjString *)array->At(1))->GetString().Atoi();
     text = content;