From 3bdeaa91f37b56f6e9265eea7f4f8666af2da361 Mon Sep 17 00:00:00 2001
From: Rene Brun <Rene.Brun@cern.ch>
Date: Tue, 15 Aug 2000 08:56:00 +0000
Subject: [PATCH] Forgot to update TChain::Draw with const char* instead of
 TCut like in TTree::Draw. The Sun compiler was complaining.

git-svn-id: http://root.cern.ch/svn/root/trunk@467 27541ba8-7e3a-0410-8455-c3a389f83636
---
 tree/inc/TChain.h   | 4 ++--
 tree/src/TChain.cxx | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/tree/inc/TChain.h b/tree/inc/TChain.h
index 0d708f65c77..1899d510465 100644
--- a/tree/inc/TChain.h
+++ b/tree/inc/TChain.h
@@ -1,4 +1,4 @@
-// @(#)root/tree:$Name:  $:$Id: TChain.h,v 1.6 2000/07/12 17:13:01 brun Exp $
+// @(#)root/tree:$Name:  $:$Id: TChain.h,v 1.7 2000/07/17 10:26:41 brun Exp $
 // Author: Rene Brun   03/02/97
 
 /*************************************************************************
@@ -50,7 +50,7 @@ public:
     virtual void      Browse(TBrowser *b);
     virtual void      CreatePackets();
     virtual void      Draw(Option_t *opt);
-    virtual Int_t     Draw(TCut varexp, TCut selection, Option_t *option=""
+    virtual Int_t     Draw(const char *varexp, TCut selection, Option_t *option=""
                        ,Int_t nentries=1000000000, Int_t firstentry=0);
     virtual Int_t     Draw(const char *varexp, const char *selection, Option_t *option=""
                      ,Int_t nentries=1000000000, Int_t firstentry=0); // *MENU*
diff --git a/tree/src/TChain.cxx b/tree/src/TChain.cxx
index 1430ed2ea3e..a656b1cf767 100644
--- a/tree/src/TChain.cxx
+++ b/tree/src/TChain.cxx
@@ -1,4 +1,4 @@
-// @(#)root/tree:$Name:  $:$Id: TChain.cxx,v 1.7 2000/07/12 17:13:01 brun Exp $
+// @(#)root/tree:$Name:  $:$Id: TChain.cxx,v 1.8 2000/07/17 10:26:41 brun Exp $
 // Author: Rene Brun   03/02/97
 
 /*************************************************************************
@@ -230,7 +230,7 @@ void TChain::CreatePackets()
 }
 
 //______________________________________________________________________________
-Int_t TChain::Draw(TCut varexp, TCut selection, Option_t *option, Int_t nentries, Int_t firstentry)
+Int_t TChain::Draw(const char *varexp, TCut selection, Option_t *option, Int_t nentries, Int_t firstentry)
 {
    // Draw expression varexp for selected entries.
    //
@@ -239,7 +239,7 @@ Int_t TChain::Draw(TCut varexp, TCut selection, Option_t *option, Int_t nentries
    //    ntuple.Draw("x",cut1+cut2+cut3);
    //
 
-   return TChain::Draw(varexp.GetTitle(), selection.GetTitle(), option, nentries, firstentry);
+   return TChain::Draw(varexp, selection.GetTitle(), option, nentries, firstentry);
 }
 
 //______________________________________________________________________________
-- 
GitLab