From 184bf17c519d444f9d511a4ec40ca868adc2e560 Mon Sep 17 00:00:00 2001 From: Michael Andres Date: Tue, 20 May 2014 19:08:05 +0200 Subject: [PATCH] xml::Node: add getAttribute(std::string) --- zypp/parser/xml/Node.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zypp/parser/xml/Node.h b/zypp/parser/xml/Node.h index b0a72c8..7f22f1a 100644 --- a/zypp/parser/xml/Node.h +++ b/zypp/parser/xml/Node.h @@ -71,6 +71,9 @@ namespace zypp XmlString getAttribute( const char * name_r ) const { return XmlString( xmlTextReaderGetAttribute( _reader, reinterpret_cast(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. */ -- 2.7.4