From 8f8c278fe40b55559fbe8b82fc5625afdb101f38 Mon Sep 17 00:00:00 2001
From: Ali Ayub Khan <akhan.bscs15seecs@seecs.edu.pk>
Date: Wed, 12 Dec 2018 04:15:43 +0500
Subject: [PATCH] Make demos.C a named macro (#2940)

* Fixed demos.C redefinition error of dirName

* Removed gROOT->Reset()
---
 tutorials/demos.C | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tutorials/demos.C b/tutorials/demos.C
index 2c079d1a95c..d9ceaf2c453 100644
--- a/tutorials/demos.C
+++ b/tutorials/demos.C
@@ -7,8 +7,7 @@
 ///
 /// \author Rene Brun
 
-{
-   gROOT->Reset();
+void demos() {
 
    //Add the tutorials directory to the macro path
    //This is necessary in case this macro is executed from another user directory
-- 
GitLab