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:
5efa1d9
)
Provide xml::EscapedString::asString
author
Michael Andres
<ma@suse.de>
Tue, 15 Apr 2014 14:45:00 +0000
(16:45 +0200)
committer
Michael Andres
<ma@suse.de>
Tue, 15 Apr 2014 14:45:00 +0000
(16:45 +0200)
zypp/parser/xml/XmlEscape.h
patch
|
blob
|
history
diff --git
a/zypp/parser/xml/XmlEscape.h
b/zypp/parser/xml/XmlEscape.h
index 24bc26ba0068d93acdba045b8bf2887e360053bf..8acf6c6b6a37a8f171d7137e37e8d83e1ba9b80e 100644
(file)
--- a/
zypp/parser/xml/XmlEscape.h
+++ b/
zypp/parser/xml/XmlEscape.h
@@
-29,8
+29,10
@@
namespace zypp
{
EscapedString( const std::string & in_r ) : _in( in_r ) {}
std::ostream & dumpOn( std::ostream & str ) const;
-
operator std::s
tring() const
+
std::string asS
tring() const
{ std::ostringstream str; dumpOn( str ); return str.str(); }
+ operator std::string() const
+ { return asString(); }
private:
const std::string & _in;
};