db/upnp: remove unnecessary empty string checks from CharacterData()
This commit is contained in:
parent
1b8053a618
commit
b330aa8dd5
@ -59,9 +59,6 @@ protected:
|
||||
}
|
||||
|
||||
virtual void CharacterData(const XML_Char *s, int len) {
|
||||
if (len == 0)
|
||||
return;
|
||||
|
||||
std::string str(s, len);
|
||||
trimstring(str);
|
||||
switch (m_path.back()[0]) {
|
||||
|
@ -160,8 +160,6 @@ protected:
|
||||
|
||||
virtual void CharacterData(const XML_Char *s, int len)
|
||||
{
|
||||
if (s == 0 || *s == 0)
|
||||
return;
|
||||
std::string str(s, len);
|
||||
trimstring(str);
|
||||
switch (m_path.back()[0]) {
|
||||
|
Loading…
Reference in New Issue
Block a user