Changeset 47:346d3d46c1dd in rrlib_xml


Ignore:
Timestamp:
20.07.2012 13:52:39 (7 years ago)
Author:
Tobias Föhst <foehst@…>
Branch:
default
Phase:
public
Message:

Adapted to changes in make_builder

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tNode.h

    r46 r47  
    649649  inline const TEnum GetEnumAttribute(const std::string &name) const 
    650650  { 
    651     const std::vector<const char *> *enum_names = make_builder::GetEnumStrings<TEnum>(); 
    652     if (enum_names == NULL) 
    653     { 
    654       throw tException("Could not find enum to string lookup table"); 
    655     } 
    656     return this->GetEnumAttribute<TEnum>(name, enum_names->begin(), enum_names->end()); 
     651    const make_builder::tEnumStrings &enum_strings(make_builder::GetEnumStrings<TEnum>()); 
     652    return this->GetEnumAttribute<TEnum>(name, enum_strings.strings, enum_strings.strings + enum_strings.size); 
    657653  } 
    658654 
Note: See TracChangeset for help on using the changeset viewer.