From 651a604738abf091d4de4483806a65a607125d56 Mon Sep 17 00:00:00 2001 From: Rene Brun <Rene.Brun@cern.ch> Date: Tue, 15 Aug 2000 09:22:33 +0000 Subject: [PATCH] To avoid a fatal error in MakeRealCode on SGI with gcc2.95, replace: Char_t* prefix = (isMethod ? Form("%s::", classname) : ""); Char_t* cv_qual = (isMethod ? "" : "static "); by const Char_t* prefix = (isMethod ? Form("%s::", classname) : ""); const Char_t* cv_qual = (isMethod ? "" : "static "); git-svn-id: http://root.cern.ch/svn/root/trunk@469 27541ba8-7e3a-0410-8455-c3a389f83636 --- hist/src/TPrincipal.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hist/src/TPrincipal.cxx b/hist/src/TPrincipal.cxx index b81afa3865a..9b85a4b178d 100644 --- a/hist/src/TPrincipal.cxx +++ b/hist/src/TPrincipal.cxx @@ -657,8 +657,8 @@ in the transformed space. */ //End_Html -// $Id: TPrincipal.cxx,v 1.5 2000/08/15 08:44:15 brun Exp $ -// $Date: 2000/08/15 08:44:15 $ +// $Id: TPrincipal.cxx,v 1.6 2000/08/15 09:00:43 brun Exp $ +// $Date: 2000/08/15 09:00:43 $ // $Author: brun $ #include "TPrincipal.h" @@ -1606,8 +1606,8 @@ TPrincipal::MakeRealCode(const Char_t* filename, const Char_t* classname, // The options are: NONE so far Bool_t isMethod = (classname[0] == '\0' ? kFALSE : kTRUE); - Char_t* prefix = (isMethod ? Form("%s::", classname) : ""); - Char_t* cv_qual = (isMethod ? "" : "static "); + const Char_t* prefix = (isMethod ? Form("%s::", classname) : ""); + const Char_t* cv_qual = (isMethod ? "" : "static "); ofstream outFile(filename,ios::out|ios::trunc); if (!outFile) { -- GitLab