diff options
author | Max Kellermann <max@duempel.org> | 2014-01-10 21:27:36 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-10 22:59:01 +0100 |
commit | f4490f6918a1b481c535b1b63179edb78382e02e (patch) | |
tree | 35f0a5f7eb08902922af1b9b9fb5b4d7b7f957af /src/Expat.hxx | |
parent | dadd987bf441324bf8824c16f3ac0798da652083 (diff) | |
download | mpd-f4490f6918a1b481c535b1b63179edb78382e02e.tar.gz mpd-f4490f6918a1b481c535b1b63179edb78382e02e.tar.xz mpd-f4490f6918a1b481c535b1b63179edb78382e02e.zip |
db/upnp/Directory: eliminate the "attributes" std::map
Look up attributes in the "atts" array. Reduce bloat.
Diffstat (limited to '')
-rw-r--r-- | src/Expat.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Expat.hxx b/src/Expat.hxx index 9fcdf61d4..d57a85533 100644 --- a/src/Expat.hxx +++ b/src/Expat.hxx @@ -56,6 +56,10 @@ public: bool Parse(InputStream &is, Error &error); gcc_pure + static const char *GetAttribute(const XML_Char **atts, + const char *name); + + gcc_pure static const char *GetAttributeCase(const XML_Char **atts, const char *name); @@ -86,6 +90,12 @@ public: } gcc_pure + static const char *GetAttribute(const XML_Char **atts, + const char *name) { + return ExpatParser::GetAttribute(atts, name); + } + + gcc_pure static const char *GetAttributeCase(const XML_Char **atts, const char *name) { return ExpatParser::GetAttributeCase(atts, name); |