Skip to content
Snippets Groups Projects
Commit 9044a373 authored by Stefan Roiser's avatar Stefan Roiser
Browse files

fix typo

git-svn-id: http://root.cern.ch/svn/root/trunk@15616 27541ba8-7e3a-0410-8455-c3a389f83636
parent 3a763f3c
No related branches found
No related tags found
No related merge requests found
// @(#)root/reflex:$Name: $:$Id: ScopeName.cxx,v 1.11 2006/06/29 14:35:40 roiser Exp $
// @(#)root/reflex:$Name: $:$Id: ScopeName.cxx,v 1.12 2006/06/29 14:43:36 roiser Exp $
// Author: Stefan Roiser 2004
// Copyright CERN, CH-1211 Geneva 23, 2004-2006, All rights reserved.
......@@ -76,7 +76,7 @@ ROOT::Reflex::Scope ROOT::Reflex::ScopeName::ByName( const std::string & name )
//else return Scope();
// HERE STARTS AN UGLY HACK WHICH HAS TO BE UNDONE ASAP
// (also remove inlcude Reflex/Type.h)
Type t = Type::ByName("name");
Type t = Type::ByName(name);
if ( t && t.IsTypedef()) {
while ( t.IsTypedef()) t = t.ToType();
if ( t.IsClass() || t.IsEnum() || t.IsUnion() ) return (Scope)t;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment