projects
/
platform
/
upstream
/
libzypp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c593ef4
)
xml::Node: add getAttribute(std::string)
author
Michael Andres
<ma@suse.de>
Tue, 20 May 2014 17:08:05 +0000
(19:08 +0200)
committer
Michael Andres
<ma@suse.de>
Tue, 27 May 2014 14:30:30 +0000
(16:30 +0200)
zypp/parser/xml/Node.h
patch
|
blob
|
history
diff --git
a/zypp/parser/xml/Node.h
b/zypp/parser/xml/Node.h
index
b0a72c8
..
7f22f1a
100644
(file)
--- 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<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. */