Remove redundant branch from xml_node::path()
The code works fine regardless of the *j->name check, and omitting this makes the code more symmetric between the "count" and "write" stage; additionally this improves coverage - due to how strcpy_insitu works it's not really possible to get an empty non-NULL name in the node.
This commit is contained in:
parent
e56686f1e5
commit
0e3ccc7396
@ -6113,7 +6113,7 @@ namespace pugi
|
|||||||
if (j != _root)
|
if (j != _root)
|
||||||
result[--offset] = delimiter;
|
result[--offset] = delimiter;
|
||||||
|
|
||||||
if (j->name && *j->name)
|
if (j->name)
|
||||||
{
|
{
|
||||||
size_t length = impl::strlength(j->name);
|
size_t length = impl::strlength(j->name);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user