xml::Node: add getAttribute(std::string)
authorMichael Andres <ma@suse.de>
Tue, 20 May 2014 17:08:05 +0000 (19:08 +0200)
committerMichael Andres <ma@suse.de>
Tue, 27 May 2014 14:30:30 +0000 (16:30 +0200)
zypp/parser/xml/Node.h

index b0a72c8..7f22f1a 100644 (file)
@@ -71,6 +71,9 @@ namespace zypp
       XmlString getAttribute( const char * name_r ) const
       { return XmlString( xmlTextReaderGetAttribute( _reader, reinterpret_cast<const xmlChar *>(name_r) ),
                           XmlString::FREE ); }
+      /** \overload */
+      XmlString getAttribute( const std::string & name_r ) const
+      { return getAttribute( name_r.c_str() ); }
 
       /** Provides a copy of the attribute value  with the specified
        * index relative to the containing element. */